From 08fd7e4663bd3acaef8c1ffc24abd6dbef28414b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 25 Mar 2013 18:43:30 +0000 Subject: 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. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36129 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/etc/hotplug.d/net/00-sysctl | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 package/base-files/files/etc/hotplug.d/net/00-sysctl (limited to 'package/base-files/files/etc/hotplug.d/net') diff --git a/package/base-files/files/etc/hotplug.d/net/00-sysctl b/package/base-files/files/etc/hotplug.d/net/00-sysctl new file mode 100644 index 0000000000..5d9da8ac06 --- /dev/null +++ b/package/base-files/files/etc/hotplug.d/net/00-sysctl @@ -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 -- cgit v1.2.3