[OpenWrt-Devel] polluted env-space after running OpenWrt-helper scripts

Jo-Philipp Wich jow at openwrt.org
Tue Nov 3 06:33:45 EST 2015


Hi,

> some things are easy for getting rid of:
> one can call 'network_flush_cache()' from
> /lib/functions/network.sh
> 
> but i'am unsure how to unset all these vars:

Whenever a script calls uci_load(), the previous state vars are
discarded, see the declaration of uci_load in /lib/config/uci.sh

You can force an unconditional unload with calling uci_load() on an
invalid package name, e.g. "uci_load %" .

~ Jow
_______________________________________________
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