diff options
author | Mario Domenech Goulart <mario@ossystems.com.br> | 2012-05-14 13:48:23 +0000 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-05-14 16:01:58 +0200 |
commit | fa7187883442441467087c3a954f9f40ee516d78 (patch) | |
tree | 145f782c60cdf28080691c98123e48c1ef0a1256 | |
parent | e08448f5f542ffd2d648e32d43c632d8bee5699a (diff) | |
download | meta-openembedded-fa7187883442441467087c3a954f9f40ee516d78.tar.gz |
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>
-rwxr-xr-x | meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl b/meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl index c4a0a3fad..6e7a05d34 100755 --- a/meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl +++ b/meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl | |||
@@ -68,8 +68,8 @@ for service in $services; do | |||
68 | ln -s $service_file $ROOT/etc/systemd/system/$r.wants | 68 | ln -s $service_file $ROOT/etc/systemd/system/$r.wants |
69 | echo "Enabled $service for $wanted_by." | 69 | echo "Enabled $service for $wanted_by." |
70 | else | 70 | else |
71 | rm -f $ROOT/etc/systemd/system/$r.wants/$service_file | 71 | rm -f $ROOT/etc/systemd/system/$r.wants/$service |
72 | rmdirs -p $ROOT/etc/systemd/system/$r.wants | 72 | rmdir --ignore-fail-on-non-empty -p $ROOT/etc/systemd/system/$r.wants |
73 | echo "Disabled $service for $wanted_by." | 73 | echo "Disabled $service for $wanted_by." |
74 | fi | 74 | fi |
75 | done | 75 | done |