summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/hotplug.d/net
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/files/etc/hotplug.d/net')
-rw-r--r--package/base-files/files/etc/hotplug.d/net/00-sysctl6
1 files changed, 6 insertions, 0 deletions
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 000000000..5d9da8ac0
--- /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