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.

> +
>  start () {
>         loglevel=$(uci_get "system.@system[0].cronloglevel")
>         [ -z "$(ls /etc/crontabs/)" ] && exit 1
> --
> 1.8.1.2
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to