On 16/11/10 23:40, Jo-Philipp Wich wrote: > Hi. > >> Can we add something like >> [ -d /lib/functions/fsck ] && pi_include /lib/functions/fsck > > A more logical place would be the pi_include() procedure. > It should be changed to handle not existing firs garcefully. > > ~ Jow
pi_include() in /etc/functions.sh is currently programmed to explicitly give a warning if you pass it an argument that does not exist. That greatly improves detecting errors in calls to pi_include(). IMHO we shouldn't call pi_include if there is nothing to include and keep pi_include() as-is. _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel