| Submitter | Otavio Salvador |
|---|---|
| Date | May 14, 2012, 1:48 p.m. |
| Message ID | <2992b9e4d0ad49610137a76273ad1ea44cfb5e86.1337003295.git.otavio@ossystems.com.br> |
| Download | mbox | patch |
| Permalink | /patch/27573/ |
| State | New, archived |
| Headers | show |
Comments
Patch
diff --git a/meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl b/meta-oe/recipes-core/systemd/systemd-systemctl-native/systemctl index c4a0a3f..6e7a05d 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 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