netifd: add reload trigger for /etc/config/wireless as well
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 18 Dec 2013 12:38:29 +0000 (12:38 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 18 Dec 2013 12:38:29 +0000 (12:38 +0000)
SVN-Revision: 39131

package/network/config/netifd/files/etc/init.d/network

index 6728fbcda5d9b9f7df3e7be059ccd474f05c3dcb..bc03783eb585f954cc96bf20ed86d7cf84f22842 100755 (executable)
@@ -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() {