forked from Ivasoft/openwrt
package/base-files: change sysctl handling Move /etc/init.d/sysctl to index 00 and add hotplug script that applies interface specific sysctls for interfaces that only appear later - this allows to reliably configure per-interface parameters in sysctl.conf, e.g. to disable ipv6 autoconfig on a specific iface.
SVN-Revision: 36129
This commit is contained in:
6
package/base-files/files/etc/hotplug.d/net/00-sysctl
Normal file
6
package/base-files/files/etc/hotplug.d/net/00-sysctl
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -f /etc/sysctl.conf ] && [ "$ACTION" = add ]; then
|
||||
sed -ne "/^[[:space:]]*net\..*\.$DEVICENAME\./p" /etc/sysctl.conf | \
|
||||
sysctl -e -p - | logger -t sysctl
|
||||
fi
|
||||
Reference in New Issue
Block a user