CPU: Wrong CPU Load %.
[tomato.git] / release / src / router / ppp / scripts / ipv6-down.sample
blob742bbe53d8069bb7951dd7dc893beb06d51edc6e
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