From patchwork Mon May 14 13:48:23 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [meta-oe, 1/1] systemd-systemctl-native: fixed systemctl wrapper's `disable' action Date: Mon, 14 May 2012 13:48:23 -0000 From: Otavio Salvador X-Patchwork-Id: 27573 Message-Id: <2992b9e4d0ad49610137a76273ad1ea44cfb5e86.1337003295.git.otavio@ossystems.com.br> To: openembedded-devel@lists.openembedded.org From: Mario Domenech Goulart Signed-off-by: Mario Domenech Goulart --- .../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 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