[OpenWrt-Devel] [PATCH] base-files: add /etc/profile.d support

Hendrik Lüth hendrik at linux-nerds.de
Wed Jun 10 10:27:30 EDT 2015


Am 10.06.2015 um 14:31 schrieb Bastian Bittorf:
> * Matthias Schiffer <mschiffer at universe-factory.net> [10.06.2015 14:26]:
>> Why should errors in these files cause login issues? This is shell and
>> there's no -e, problematic lines will print an error and be skipped.
> i have seen a lot of strange things. think about
> flash readerrors or stack corruption or $youridea 8-)
>
> i think we can agree that we will not use a subshell,
> but ignore profile.d in failsafe mode, ok? the 'sh -n'
> thing is just a small 'insurance' - do you think it hurts/is too much?
>
> bye, bastian

I'd like to see, that the scripts in profile.d are getting called 
without the 'sh' because those scripts could be written in Lua, too.
Weather a script needs to get called in failsafe mode or not depends on 
the script, so I'd like to not skip it.

regards, Hendrik
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list