#!/bin/sh # Start/stop/restart the ppp daemon # # Written for Slackware Linux by Robby Workman # ## (by modifying one of Pat's scripts) dialup_start() { echo "" echo -n "Starting ppp daemon in demand mode: " echo -n "/usr/sbin/ppp-go -d --nopersist --holdoff 5 " ppp-go -d --nopersist --holdoff 5 echo "" sleep 1 } dialup_stop() { /usr/sbin/ppp-off 2> /dev/null /bin/killall -9 pppd 2> /dev/null } dialup_restart() { dialup_stop sleep 1 dialup_start } case "$1" in 'start') dialup_start ;; 'stop') dialup_stop ;; 'restart') dialup_restart ;; *) echo "usage $0 start|stop|restart" esac