summaryrefslogtreecommitdiff
path: root/package/network/config/netifd
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-06-05 10:56:14 +0000
committerJohn Crispin <john@openwrt.org>2014-06-05 10:56:14 +0000
commit7a0606124a198fa04ba7a766af476d598ad80e80 (patch)
treec3bef28c7dd52d270cb513a33956f3d0d43d64f4 /package/network/config/netifd
parent91de9c589c4d712abf624449b8e536d33f535da4 (diff)
downloadmtk-20170518-7a0606124a198fa04ba7a766af476d598ad80e80.zip
mtk-20170518-7a0606124a198fa04ba7a766af476d598ad80e80.tar.gz
mtk-20170518-7a0606124a198fa04ba7a766af476d598ad80e80.tar.bz2
netfid: make procd watch the network.interface object for events
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41010
Diffstat (limited to 'package/network/config/netifd')
-rwxr-xr-xpackage/network/config/netifd/files/etc/init.d/network1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/network/config/netifd/files/etc/init.d/network b/package/network/config/netifd/files/etc/init.d/network
index 2e22732..8a65f05 100755
--- a/package/network/config/netifd/files/etc/init.d/network
+++ b/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