resync gpsd with old trunk version
[openwrt/svn-archive/archive.git] / ipv6 / mrd6 / files / mrd6.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3
4 start() {
5 /sbin/lsmod | grep ipv6 > /dev/null
6 if [ "$?" != "0" ]; then
7 echo -n "IPv6 stack required by mrd6. Loading ipv6 module: "
8 /sbin/insmod ipv6
9 echo "Done."
10 fi
11 echo -n "Starting IPv6 multicast router (mrd6): "
12 /usr/sbin/mrd6 -f /etc/mrd6.conf -D
13 echo "Done."
14 }
15
16 stop() {
17 echo -n "Stopping IPv6 multicast router (mrd6): "
18 killall mrd6
19 echo "Done."
20 }
21