Browse Source

netfid: make procd watch the network.interface object for events

Signed-off-by: John Crispin <[email protected]>

SVN-Revision: 41010
John Crispin 11 years ago
parent
commit
7a0606124a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      package/network/config/netifd/files/etc/init.d/network

+ 1 - 0
package/network/config/netifd/files/etc/init.d/network

@@ -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