1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-02 01:30:16 +02:00
openwrt-xburst/openwrt/package/mrd6/files/mrd6.init
florian e758f86a63 Added mrd6 package : IPv6 multicast routing daemon
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2816 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-01-03 12:53:01 +00:00

30 lines
612 B
Bash
Executable File

#!/bin/sh
case $1 in
start)
/sbin/lsmod | grep ipv6 > /dev/null
if [ "$?" != "0" ]
then
echo -n "IPv6 stack required by mrd6. Loading ipv6 module: "
/sbin/insmod ipv6
echo "Done."
fi
echo -n "Starting IPv6 multicast router (mrd6): "
/usr/sbin/mrd6 -f /etc/mrd6.conf -D
echo "Done."
;;
stop)
echo -n "Stopping IPv6 multicast router (mrd6): "
killall mrd6
echo "Done."
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start | stop | restart}"
;;
esac
exit 0