Fix sysctl patch
This commit is contained in:
parent
1d7d2ed79a
commit
26f2ef3252
@ -2,10 +2,9 @@ From: Matthias Schiffer <mschiffer@universe-factory.net>
|
|||||||
Date: Sat, 11 Jan 2014 13:31:13 +0100
|
Date: Sat, 11 Jan 2014 13:31:13 +0100
|
||||||
Subject: package/base-files: change sysctl handling
|
Subject: package/base-files: change sysctl handling
|
||||||
|
|
||||||
Move /etc/init.d/sysctl to index 00 and add hotplug script that applies
|
Add hotplug script that applies interface specific sysctls for interfaces that
|
||||||
interface specific sysctls for interfaces that only appear later - this
|
only appear later - this allows to reliably configure per-interface parameters
|
||||||
allows to reliably configure per-interface parameters in sysctl.conf, e.g.
|
in sysctl.conf, e.g. to disable ipv6 autoconfig on a specific iface.
|
||||||
to disable ipv6 autoconfig on a specific iface.
|
|
||||||
|
|
||||||
Cherry-picked from Barrier Breaker
|
Cherry-picked from Barrier Breaker
|
||||||
|
|
||||||
@ -21,16 +20,3 @@ index 0000000..5d9da8a
|
|||||||
+ sed -ne "/^[[:space:]]*net\..*\.$DEVICENAME\./p" /etc/sysctl.conf | \
|
+ sed -ne "/^[[:space:]]*net\..*\.$DEVICENAME\./p" /etc/sysctl.conf | \
|
||||||
+ sysctl -e -p - | logger -t sysctl
|
+ sysctl -e -p - | logger -t sysctl
|
||||||
+fi
|
+fi
|
||||||
diff --git a/package/base-files/files/etc/init.d/sysctl b/package/base-files/files/etc/init.d/sysctl
|
|
||||||
index 3480d66..beeb79f 100755
|
|
||||||
--- a/package/base-files/files/etc/init.d/sysctl
|
|
||||||
+++ b/package/base-files/files/etc/init.d/sysctl
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
#!/bin/sh /etc/rc.common
|
|
||||||
# Copyright (C) 2006 OpenWrt.org
|
|
||||||
|
|
||||||
-START=11
|
|
||||||
+START=0
|
|
||||||
start() {
|
|
||||||
[ -f /etc/sysctl.conf ] && sysctl -p -e >&-
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user