(view
this code in a separate window)
#!/bin/sh
# ip-down <interface> <myaddr> <daemon-pid> <local> <remote> <arg>
# This script is called with the same arguments as ip-up
# after the interface goes down.
umask 022
PATH=/sbin:/bin:/usr/sbin:/usr/bin
# remove the daemon PID file
rm -f /var/run/cipe/$6.pid /var/run/cipe/$1.pid
# remove routing for 192.168.2.0
route del -net 192.168.2.0/24
# or let gated know
#gdc interface
exit 0
|