diff options
author | Florian Fainelli <florian@openwrt.org> | 2006-01-03 12:53:01 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2006-01-03 12:53:01 +0000 |
commit | 9feda69af9dd6682ef0f92a4f63c223f1174e18b (patch) | |
tree | 0d8d23205fa0b40990a9b1c56c56cf7d76a25792 /package/mrd6/files/mrd6.init | |
parent | 927ab463fb65539129594f22c42bcdb71ba34f25 (diff) | |
download | master-187ad058-9feda69af9dd6682ef0f92a4f63c223f1174e18b.tar.gz master-187ad058-9feda69af9dd6682ef0f92a4f63c223f1174e18b.tar.bz2 master-187ad058-9feda69af9dd6682ef0f92a4f63c223f1174e18b.zip |
Added mrd6 package : IPv6 multicast routing daemon
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2816 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mrd6/files/mrd6.init')
-rwxr-xr-x | package/mrd6/files/mrd6.init | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/package/mrd6/files/mrd6.init b/package/mrd6/files/mrd6.init new file mode 100755 index 0000000000..886723f15e --- /dev/null +++ b/package/mrd6/files/mrd6.init @@ -0,0 +1,29 @@ +#!/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 |