add a way of integrating config file handlers in extra packages
authorFelix Fietkau <nbd@openwrt.org>
Fri, 7 Oct 2005 18:28:17 +0000 (18:28 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 7 Oct 2005 18:28:17 +0000 (18:28 +0000)
SVN-Revision: 2068

openwrt/package/webif/files/usr/lib/webif/apply.sh

index 9cfc17634c92a0d0f52d5f6c958dbfc6bd357c03..46aede4ba05f2c30cbd163c223197630804b1889 100644 (file)
@@ -12,6 +12,9 @@ HANDLERS_file='
        ethers) rm -f /etc/ethers; mv $config /etc/ethers; killall -HUP dnsmasq ;;
 '
 
+# for some reason a for loop with "." doesn't work
+eval "$(cat /usr/lib/webif/apply-*.sh 2>&-)"
+
 reload_network() {
        echo Reloading networking settings ...
        grep '^wan_' config-network >&- 2>&- && {