2006-10-04 21:04:48 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
2007-05-10 10:38:53 +00:00
|
|
|
START=50
|
2006-08-06 10:39:32 +00:00
|
|
|
|
2006-10-04 21:04:48 +00:00
|
|
|
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): "
|
2006-08-06 10:39:32 +00:00
|
|
|
/usr/sbin/mrd6 -f /etc/mrd6.conf -D
|
2006-10-04 21:04:48 +00:00
|
|
|
echo "Done."
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
echo -n "Stopping IPv6 multicast router (mrd6): "
|
2006-08-06 10:39:32 +00:00
|
|
|
killall mrd6
|
2006-10-04 21:04:48 +00:00
|
|
|
echo "Done."
|
|
|
|
}
|
|
|
|
|