cron: Add path
authorFelix Fietkau <nbd@openwrt.org>
Fri, 28 Jan 2011 12:50:10 +0000 (12:50 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 28 Jan 2011 12:50:10 +0000 (12:50 +0000)
Override PATH for /etc/init.d/cron. This is necessary to ensure all programs
can be found when executing the script from remote by using ssh.
(e.g. ssh IP /etc/init.d/cron restart)

Patch from: kentarou matsuyama <matsuyama@thinktube.com>

SVN-Revision: 25196

package/busybox/files/cron

index d997937092d1d0b39ec6f2b0613a9d6d58379b94..56348c84af1726b8e3ea97511d5df3b7437e4f9a 100755 (executable)
@@ -2,6 +2,8 @@
 # Copyright (C) 2006 OpenWrt.org
 START=50
 
 # Copyright (C) 2006 OpenWrt.org
 START=50
 
+PATH="/bin:/sbin:/usr/bin:/usr/sbin"
+
 start () {
        loglevel=$(uci_get "system.@system[0].cronloglevel")
        [ -z "$(ls /etc/crontabs/)" ] && exit 1
 start () {
        loglevel=$(uci_get "system.@system[0].cronloglevel")
        [ -z "$(ls /etc/crontabs/)" ] && exit 1