netfid: make procd watch the network.interface object for events
authorJohn Crispin <john@openwrt.org>
Thu, 5 Jun 2014 10:56:14 +0000 (10:56 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 5 Jun 2014 10:56:14 +0000 (10:56 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41010

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

index 2e22732a9f2027a3e26a17d20a640d63748840dd..8a65f05b410cd4f61376ca8cf9a5b171d48e8943 100755 (executable)
@@ -18,6 +18,7 @@ start_service() {
        procd_open_instance
        procd_set_param command /sbin/netifd
        procd_set_param respawn
+       procd_set_param watch network.interface
        [ -e /proc/sys/kernel/core_pattern ] && {
                procd_set_param limits core="unlimited"
                echo '/tmp/%e.%p.%s.%t.core' > /proc/sys/kernel/core_pattern