Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / usr / share / doc / ppp / examples / scripts / | server ip : 104.21.89.46 your ip : 172.69.214.58 H O M E |
Filename | /usr/share/doc/ppp/examples/scripts/ipv6-down.sample |
Size | 609 |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 27-Apr-2025 09:55 |
Last modified | 17-Nov-2009 05:26 |
Last accessed | 07-Jul-2025 07:28 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
#!/bin/sh
#
# This script is called with the following parameters:
# interface tty speed local-address remote-address ipparam
#
# Kill the router advertisement daemon on this interface.
# The killing procedure is copied from RedHat 6.0 initscripts.
DEVICE="$1"
PIDFILE="/var/run/radvd-$DEVICE.pid"
[ -f "$PIDFILE" ] || exit 0
PID="$(cat "$PIDFILE")"
if [ "$PID" != "" ]; then
if ps h "$PID" >/dev/null 2>&1; then
kill -TERM "$PID"
usleep 10000
if ps h "$PID" >/dev/null 2>&1; then
sleep 1
if ps h "$PID" >/dev/null 2>&1; then
kill -KILL "$PID"
fi
fi
fi
fi
rm -f "$PIDFILE"
#
# This script is called with the following parameters:
# interface tty speed local-address remote-address ipparam
#
# Kill the router advertisement daemon on this interface.
# The killing procedure is copied from RedHat 6.0 initscripts.
DEVICE="$1"
PIDFILE="/var/run/radvd-$DEVICE.pid"
[ -f "$PIDFILE" ] || exit 0
PID="$(cat "$PIDFILE")"
if [ "$PID" != "" ]; then
if ps h "$PID" >/dev/null 2>&1; then
kill -TERM "$PID"
usleep 10000
if ps h "$PID" >/dev/null 2>&1; then
sleep 1
if ps h "$PID" >/dev/null 2>&1; then
kill -KILL "$PID"
fi
fi
fi
fi
rm -f "$PIDFILE"