diff options
author | Jack Mitchell <jmitchell@cbnl.com> | 2013-10-15 10:06:14 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-10-18 15:49:58 +0100 |
commit | 89b569bca7b270e83f305bdc16ddc066ff406e95 (patch) | |
tree | 61ba7d620354ad50421af4b115a764bd28368a57 /meta/recipes-extended | |
parent | 57f75d32f94cf59ee239b6d64b336e68009b98c7 (diff) | |
download | 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')
-rwxr-xr-x | meta/recipes-extended/cronie/cronie/crond.init | 8 |
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 08f34beed9..c8dffef89a 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 | |||
23 | 23 | ||
24 | case "$1" in | 24 | case "$1" in |
25 | start) | 25 | start) |
26 | if [ $UID -ne 0 ] ; then | ||
27 | echo "User has insufficient privilege." | ||
28 | exit 1 | ||
29 | fi | ||
30 | echo -n "Starting crond: " | 26 | echo -n "Starting crond: " |
31 | start-stop-daemon --start --quiet --exec $CROND -- $CRONDARGS | 27 | start-stop-daemon --start --quiet --exec $CROND -- $CRONDARGS |
32 | RETVAL=$? | 28 | RETVAL=$? |
@@ -37,10 +33,6 @@ case "$1" in | |||
37 | fi | 33 | fi |
38 | ;; | 34 | ;; |
39 | stop) | 35 | stop) |
40 | if [ $UID -ne 0 ] ; then | ||
41 | echo "User has insufficient privilege." | ||
42 | exit 1 | ||
43 | fi | ||
44 | echo -n "Stopping crond: " | 36 | echo -n "Stopping crond: " |
45 | start-stop-daemon --stop --quiet --pidfile /var/run/crond.pid | 37 | start-stop-daemon --stop --quiet --pidfile /var/run/crond.pid |
46 | RETVAL=$? | 38 | RETVAL=$? |