add webif
[openwrt/svn-archive/archive.git] / openwrt / package / webif / files / usr / lib / webif / apply.sh
1 cd /tmp/.webif
2
3 [ -f /etc/nvram.overrides ] && ( # White Russian
4 cd /proc/self
5 cat /tmp/.webif/config-* | tee fd/1 | xargs -n1 nvram set
6 )
7
8 nvram commit
9 for config in config-*; do
10 name="/usr/lib/webif/apply-${config#config-}.sh"
11 [ -f "$name" ] && sh $name &
12 done
13 rm -f config-*