* thomas.lan...@lantiq.com <thomas.lan...@lantiq.com> [10.06.2015 13:59]:
> I think this will not work, as /etc/profile (and these additional files) is 
> expected to be executed in the current shell context.
> Otherwise adding shell variables or extending $PATH will not work. So you 
> cannot execute them in a subshell.

ok, then please:
[ -e "$FILE" ] && sh -n "$FILE" && . "$FILE"

> Maybe it is possible to skip this for FAILSAFE mode? If there are errors, 
> they can be corrected in this way.

this is a good point:

[ -z "$FAILSAFE" ] && {
  ...yourlogic...
}

bye, bastian
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to