netifd: use procd_add_reload_trigger
authorFelix Fietkau <nbd@openwrt.org>
Wed, 11 Jun 2014 17:05:50 +0000 (17:05 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 11 Jun 2014 17:05:50 +0000 (17:05 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41147

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

index 8a65f05b410cd4f61376ca8cf9a5b171d48e8943..8a7427bacd585a96ffa82c3c2a3670ce9572cd12 100755 (executable)
@@ -138,10 +138,7 @@ validate_switch_vlan()
 
 service_triggers()
 {
-       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
+       procd_add_reload_trigger network wireless
 
        procd_open_validate
        validate_atm_bridge_section