Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / pppd / scripts / ipv6-down.sample
blobbf315747cea5c72d6468323efb6b3c401a576197
1 #!/bin/sh
3 # This script is called with the following parameters:
4 # interface tty speed local-address remote-address ipparam
8 # Kill the router advertisement daemon on this interface.
9 # The killing procedure is copied from RedHat 6.0 initscripts.
11 DEVICE="$1"
13 PIDFILE="/var/run/radvd-$DEVICE.pid"
15 [ -f "$PIDFILE" ] || exit 0
17 PID="$(cat "$PIDFILE")"
18 if [ "$PID" != "" ]; then
19 if ps h "$PID" >/dev/null 2>&1; then
20 kill -TERM "$PID"
21 usleep 10000
22 if ps h "$PID" >/dev/null 2>&1; then
23 sleep 1
24 if ps h "$PID" >/dev/null 2>&1; then
25 kill -KILL "$PID"
31 rm -f "$PIDFILE"