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