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:47:12 +0100 |
commit | dd6a45536043af34c05a699e468cef4845f7affd (patch) | |
tree | c1f92d02f4af20f600f74477f1d03303bf3dcfc0 /meta/recipes-extended | |
parent | 86af33b891d860798de2ad2c0dbd3c90ceab13a1 (diff) | |
download | openembedded-core-dd6a45536043af34c05a699e468cef4845f7affd.tar.gz openembedded-core-dd6a45536043af34c05a699e468cef4845f7affd.tar.bz2 openembedded-core-dd6a45536043af34c05a699e468cef4845f7affd.zip |
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.
Signed-off-by: Jack Mitchell <jmitchell@cbnl.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
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 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=$? |