File: S50mrd6

package info (click to toggle)
mrd6 0.9.6-1.2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,292 kB
  • ctags: 3,889
  • sloc: cpp: 25,482; perl: 454; makefile: 272; ansic: 180; sh: 74
file content (31 lines) | stat: -rwxr-xr-x 628 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh

DNAME=mrd6

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/$DNAME -f /etc/mrd6.conf -D
        echo "Done."
        ;;
stop)
        echo -n "Stopping IPv6 multicast router (mrd6): "
	killall $DNAME
        echo "Done."
        ;;
restart)
        $0 stop
        $0 start
        ;;
*)
        echo "Usage: $0 {start | stop | restart}"
        ;;
esac
exit 0