projects
/
openwrt
/
staging
/
blocktrron.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a48d1f3
)
cron: Add path
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 28 Jan 2011 12:50:10 +0000
(12:50 +0000)
committer
Felix 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
patch
|
blob
|
history
diff --git
a/package/busybox/files/cron
b/package/busybox/files/cron
index d997937092d1d0b39ec6f2b0613a9d6d58379b94..56348c84af1726b8e3ea97511d5df3b7437e4f9a 100755
(executable)
--- a/
package/busybox/files/cron
+++ b/
package/busybox/files/cron
@@
-2,6
+2,8
@@
# 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