From: Jack Mitchell Date: Tue, 15 Oct 2013 09:06:14 +0000 (+0100) Subject: crond: remove UID check in init script X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=89b569bca7b270e83f305bdc16ddc066ff406e95;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git crond: remove UID check in init script this init script fails when the default shell is busybox sh. This is because busybox sh doesn't set the UID. No other init scripts in oecore feel the need to check the UID so just remove the check. (From OE-Core rev: dd6a45536043af34c05a699e468cef4845f7affd) Signed-off-by: Jack Mitchell Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-extended/cronie/cronie/crond.init b/meta/recipes-extended/cronie/cronie/crond.init index 08f34beed95..c8dffef89a3 100755 --- a/meta/recipes-extended/cronie/cronie/crond.init +++ b/meta/recipes-extended/cronie/cronie/crond.init @@ -23,10 +23,6 @@ CONFIG=/etc/sysconfig/crond case "$1" in start) - if [ $UID -ne 0 ] ; then - echo "User has insufficient privilege." - exit 1 - fi echo -n "Starting crond: " start-stop-daemon --start --quiet --exec $CROND -- $CRONDARGS RETVAL=$? @@ -37,10 +33,6 @@ case "$1" in fi ;; stop) - if [ $UID -ne 0 ] ; then - echo "User has insufficient privilege." - exit 1 - fi echo -n "Stopping crond: " start-stop-daemon --stop --quiet --pidfile /var/run/crond.pid RETVAL=$?