summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/cronie
diff options
context:
space:
mode:
authorJack Mitchell <jmitchell@cbnl.com>2013-10-15 10:06:14 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-18 15:49:58 +0100
commit89b569bca7b270e83f305bdc16ddc066ff406e95 (patch)
tree61ba7d620354ad50421af4b115a764bd28368a57 /meta/recipes-extended/cronie
parent57f75d32f94cf59ee239b6d64b336e68009b98c7 (diff)
downloadast2050-yocto-poky-89b569bca7b270e83f305bdc16ddc066ff406e95.zip
ast2050-yocto-poky-89b569bca7b270e83f305bdc16ddc066ff406e95.tar.gz
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 <jmitchell@cbnl.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/cronie')
-rwxr-xr-xmeta/recipes-extended/cronie/cronie/crond.init8
1 files changed, 0 insertions, 8 deletions
diff --git a/meta/recipes-extended/cronie/cronie/crond.init b/meta/recipes-extended/cronie/cronie/crond.init
index 08f34be..c8dffef 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=$?
OpenPOWER on IntegriCloud