3
# Example netdown script for xmonisdn
4
# Do with it what you want.
6
# Note that xisdnload looks at the routing table to determine if a connection
8
# - if there is _ANY_ route to an isdn or ippp interface, clicking on xisdnload
9
# will cause the netdown script to be run.
10
# - if there is _NO_ route to any isdn or ippp interface, clicking on xisdnload
11
# will cause the netup script to be run.
13
# As the example netdown script only hangs up the connection (and leaves the
14
# routes alone), another click will simply try to hang up again (i.e. run this
15
# script again). So, putting "isdnctrl dialmode all off" here is not that
16
# useful, as you have to do "isdnctrl dialmode all auto" manually...
18
# Feel free to modify the scripts so that the routes are deleted and added.
20
egrep -s '^ i(sdn|ppp)' /proc/net/dev > /dev/null || exit 0
21
/usr/sbin/isdnctrl hangup ippp0 > /dev/null