aboutsummaryrefslogtreecommitdiffstats
path: root/package/ipv6-support/files/ipv6-boot
diff options
context:
space:
mode:
Diffstat (limited to 'package/ipv6-support/files/ipv6-boot')
-rwxr-xr-xpackage/ipv6-support/files/ipv6-boot15
1 files changed, 15 insertions, 0 deletions
diff --git a/package/ipv6-support/files/ipv6-boot b/package/ipv6-support/files/ipv6-boot
new file mode 100755
index 0000000000..a0d3856c03
--- /dev/null
+++ b/package/ipv6-support/files/ipv6-boot
@@ -0,0 +1,15 @@
+#!/bin/sh /etc/rc.common
+START=11
+STOP=97
+
+start() {
+ # early sysctl to avoid networking races
+ if [ -d /proc/sys/net/ipv6/conf ]; then
+ for i in /proc/sys/net/ipv6/conf/*/accept_ra; do
+ echo 0 > $i
+ done
+
+ echo 1 > /proc/sys/net/ipv6/conf/default/forwarding
+ echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
+ fi
+}