#!/bin/sh # Author: Benoit PAPILLAULT # Creation: 12/05/2004 # Goal: Stop the connection # Ensure to have a working PATH prefix=@prefix@ exec_prefix=@exec_prefix@ export PATH=/sbin:/bin:/usr/sbin:/usr/bin:@sbindir@:@bindir@ # check for root privileges if [ "`whoami`" != "root" ]; then echo "You must launch this script with root privileges. Enter root password." exec su -c "$0 $@" exit -1 fi echo "Stopping ADSL connection..." # if one configuration file exists, read it. This file should define : # # FIRMWARE_LOADER_FILE # FIRMWARE_FILE # PPPD_PEER # if [ -f /etc/speedtouch/speedtouch.conf ]; then . /etc/speedtouch/speedtouch.conf fi PID=`head -1 "/var/run/ppp-${PPPD_PEER}.pid"` kill -TERM $PID # like we said in speedtouch-start, we don't ever kill modem_run # killall modem_run # should not be needed # killall ppppoa2 pppoa3