summaryrefslogtreecommitdiff
path: root/openwrt/package/radvd/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-04-04 22:12:17 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-04-04 22:12:17 +0000
commit0cd8cbd7ff2b68b166567c3e2cf990028f144320 (patch)
tree8d14cbb0c2a39741d0a4e01461bf26c53275c0cf /openwrt/package/radvd/files
parent239ae7ecfa44dfd2194bb8472a244ecdfa8ccdaa (diff)
downloadmtk-20170518-0cd8cbd7ff2b68b166567c3e2cf990028f144320.zip
mtk-20170518-0cd8cbd7ff2b68b166567c3e2cf990028f144320.tar.gz
mtk-20170518-0cd8cbd7ff2b68b166567c3e2cf990028f144320.tar.bz2
add aiccu, bwm, ntpclient and radvd (from Sebastian Noel)
SVN-Revision: 562
Diffstat (limited to 'openwrt/package/radvd/files')
-rwxr-xr-xopenwrt/package/radvd/files/S51radvd22
-rw-r--r--openwrt/package/radvd/files/radvd.conf.example22
2 files changed, 44 insertions, 0 deletions
diff --git a/openwrt/package/radvd/files/S51radvd b/openwrt/package/radvd/files/S51radvd
new file mode 100755
index 0000000..88565db
--- /dev/null
+++ b/openwrt/package/radvd/files/S51radvd
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+case "$1" in
+ start)
+ echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
+ /usr/sbin/radvd
+ ;;
+
+ stop)
+ killall radvd
+ echo 0 > /proc/sys/net/ipv6/conf/all/forwarding
+ ;;
+
+ restart)
+ $0 stop
+ $0 start
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart}"
+ exit 1
+ ;;
+esac
diff --git a/openwrt/package/radvd/files/radvd.conf.example b/openwrt/package/radvd/files/radvd.conf.example
new file mode 100644
index 0000000..06d8357
--- /dev/null
+++ b/openwrt/package/radvd/files/radvd.conf.example
@@ -0,0 +1,22 @@
+# For more examples, see the radvd documentation.
+
+interface br0
+{
+ AdvSendAdvert off;
+
+#
+# Disable Mobile IPv6 support
+#
+ AdvHomeAgentFlag off;
+
+#
+# example of a standard prefix
+#
+ prefix fec0:0:0:1::/64
+ {
+ AdvOnLink on;
+ AdvAutonomous on;
+ AdvRouterAddr off;
+ };
+
+};