On 2011-01-26 9:12 AM, kentarou matsuyama wrote:
> Add /usr/sbin/ to PATH in case it is missing (e.g. when executing the script
> from remote by using ssh IP /etc/init.d/cron restart)
> ---
>  package/busybox/files/cron |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/package/busybox/files/cron b/package/busybox/files/cron
> index d997937..95f2f2e 100755
> --- a/package/busybox/files/cron
> +++ b/package/busybox/files/cron
> @@ -2,6 +2,8 @@
>  # Copyright (C) 2006 OpenWrt.org
>  START=50
>  
> +PATH="/usr/sbin/:$PATH"
Wouldn't it be better to overwrite the full path here to set it to the
same value that gets set in the boot scripts? Just in case the user's
PATH deviates even more than just the lack of /usr/sbin

- Felix
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to