summaryrefslogtreecommitdiffstats
path: root/package/radvd/S50radvd
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-01-28 21:38:49 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2009-01-28 21:38:49 +0000
commitd459b1bc3d53dac0e1a3ee68893724a2878fad05 (patch)
treedacbba63f8142372651ed002ae4264d8c2ee7974 /package/radvd/S50radvd
parent2389a4591ba93705783d8c8fe9b042fc1e775bcc (diff)
downloadbuildroot-novena-d459b1bc3d53dac0e1a3ee68893724a2878fad05.tar.gz
buildroot-novena-d459b1bc3d53dac0e1a3ee68893724a2878fad05.zip
Add radvd to the list of packages
Add radvd, the IPv6 router advertisement daemon. Signed-off-by: Amand Tihon <amand.tihon@alrj.org>
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