summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-12-18 12:38:29 +0000
committerJo-Philipp Wich <jow@openwrt.org>2013-12-18 12:38:29 +0000
commit17897449589281f35b93317e1d71e8543f9a1403 (patch)
tree2f4c2fb4074c542f100b92bfced52a7e4451c1e4
parent2318a46d846453b6dfb93e3edc3575722ba782c0 (diff)
downloadmtk-20170518-17897449589281f35b93317e1d71e8543f9a1403.zip
mtk-20170518-17897449589281f35b93317e1d71e8543f9a1403.tar.gz
mtk-20170518-17897449589281f35b93317e1d71e8543f9a1403.tar.bz2
netifd: add reload trigger for /etc/config/wireless as well
SVN-Revision: 39131
-rwxr-xr-xpackage/network/config/netifd/files/etc/init.d/network5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/network/config/netifd/files/etc/init.d/network b/package/network/config/netifd/files/etc/init.d/network
index 6728fbc..bc03783 100755
--- a/package/network/config/netifd/files/etc/init.d/network
+++ b/package/network/config/netifd/files/etc/init.d/network
@@ -38,7 +38,10 @@ service_running() {
service_triggers()
{
- procd_add_reload_trigger "network"
+ procd_open_trigger
+ procd_add_config_trigger "config.change" "network" /etc/init.d/network reload
+ procd_add_config_trigger "config.change" "wireless" /etc/init.d/network reload
+ procd_close_trigger
}
restart() {