mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-06 03:10:01 +00:00
systemd-systemctl-native: fixed systemctl wrapper's `disable' action
Signed-off-by: Mario Domenech Goulart <mario@ossystems.com.br> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
committed by
Koen Kooi
parent
e08448f5f5
commit
fa71878834
@@ -68,8 +68,8 @@ for service in $services; do
|
||||
ln -s $service_file $ROOT/etc/systemd/system/$r.wants
|
||||
echo "Enabled $service for $wanted_by."
|
||||
else
|
||||
rm -f $ROOT/etc/systemd/system/$r.wants/$service_file
|
||||
rmdirs -p $ROOT/etc/systemd/system/$r.wants
|
||||
rm -f $ROOT/etc/systemd/system/$r.wants/$service
|
||||
rmdir --ignore-fail-on-non-empty -p $ROOT/etc/systemd/system/$r.wants
|
||||
echo "Disabled $service for $wanted_by."
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user