source: freewrt/package/mrd6/files/mrd6.init@ 621d5d2

freewrt_2_0
Last change on this file since 621d5d2 was 65d016f, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

fix half of the init scripts not conforming to
our standard. thx very much ulmen!

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@1000 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100755
File size: 697 bytes
Line 
1#!/bin/sh
2
3. /etc/rc.conf
4
5case $1 in
6autostart)
7 test x"${mrd6:-NO}" = x"NO" && exit 0
8 exec $0 start
9 ;;
10start)
11 /sbin/lsmod | grep ipv6 > /dev/null
12 if [ "$?" != "0" ]
13 then
14 echo -n "IPv6 stack required by mrd6. Loading ipv6 module: "
15 /sbin/insmod ipv6
16 echo "Done."
17 fi
18 echo -n "Starting IPv6 multicast router (mrd6): "
19 /usr/sbin/mrd6 -f /etc/mrd6.conf -D
20 echo "Done."
21 ;;
22stop)
23 echo -n "Stopping IPv6 multicast router (mrd6): "
24 killall mrd6
25 echo "Done."
26 ;;
27restart)
28 $0 stop
29 $0 start
30 ;;
31*)
32 echo "Usage: $0 {start | stop | restart}"
33 ;;
34esac
35exit 0
Note: See TracBrowser for help on using the repository browser.