From: Felix Fietkau Date: Fri, 7 Oct 2005 18:28:17 +0000 (+0000) Subject: add a way of integrating config file handlers in extra packages X-Git-Tag: whiterussian_rc4~138 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=f6c2aa487dc7cff8ad237fd099718703353acbb5;p=openwrt%2Fsvn-archive%2Fopenwrt.git add a way of integrating config file handlers in extra packages SVN-Revision: 2068 --- diff --git a/openwrt/package/webif/files/usr/lib/webif/apply.sh b/openwrt/package/webif/files/usr/lib/webif/apply.sh index 9cfc17634c..46aede4ba0 100644 --- a/openwrt/package/webif/files/usr/lib/webif/apply.sh +++ b/openwrt/package/webif/files/usr/lib/webif/apply.sh @@ -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>&- && {