packages/ipv6/mrd6/files/mrd6.init
nbd 8b12dd0b90 port over more init scripts
git-svn-id: svn://svn.openwrt.org/openwrt/packages@4918 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-10-04 21:04:48 +00:00

22 lines
430 B
Bash
Executable File

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
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."
}