summaryrefslogtreecommitdiffstats
path: root/package/radvd/S50radvd
diff options
context:
space:
mode:
Diffstat (limited to 'package/radvd/S50radvd')
-rwxr-xr-xpackage/radvd/S50radvd18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/radvd/S50radvd b/package/radvd/S50radvd
new file mode 100755
index 000000000..d3e2cd18a
--- /dev/null
+++ b/package/radvd/S50radvd
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+RADVD=/usr/sbin/radvd
+
+echo "1" > /proc/sys/net/ipv6/conf/all/forwarding
+
+echo -n "Starting radvd: "
+if [ ! -x "${RADVD}" ]; then
+ echo "missing"
+ exit 1
+fi
+
+if ${RADVD} ; then
+ echo "done"
+else
+ echo "failed"
+ exit 1
+fi