On 10/11/2013 01:35 AM, Yousong Zhou wrote:
Hi,
On 10 October 2013 19:02, Bruno Randolf <b...@einfach.org> wrote:
Add PATH in case it is missing (e.g. when executing the script from
ssh, like "ssh IP /etc/init.d/cron restart").
Signed-off-by: Bruno Randolf <b...@einfach.org>
---
package/busybox/files/cron | 2 ++
1 file changed, 2 insertions(+)
diff --git a/package/busybox/files/cron b/package/busybox/files/cron
index 465b1ab..79b0a46 100755
--- a/package/busybox/files/cron
+++ b/package/busybox/files/cron
@@ -5,6 +5,8 @@ START=50
SERVICE_USE_PID=1
+PATH="/usr/sbin/:$PATH"
Not sure here. Even `PATH` is needed, it should be `export PATH=xxx`
to make it visible to child processes.
It did fix problems with invocation via ssh at some point, this is very
rare and it looks like it's not necessary for trunk any more, so feel
free to ignore it.
bruno
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel