# To unbundle, run this file
echo ppp-up
sed 's/.//' >ppp-up <<'//GO.SYSIN DD ppp-up'
-#!/bin/sh
-
-#
-# ppp-[up|down] isp
-#
-# Set up or tear down PPP to an ISP
-#
-
-dev=/dev/modem
-isp=planete
-
-pid=/var/run/ppp0.pid
-sigdown=SIGINT
-log=/var/log/messages
-
-myname="`basename \"$0\"`"
-
-case "$myname" in
-ppp-up)
- case $# in
- 1)
- isp="$1"
- ;;
- esac
-
- pppd "$dev" call "$isp"
- tail -f "$log"
- ;;
-
-ppp-down)
- kill -s "$sigdown" "`cat \"$pid\"`"
- sleep 2 ; tail -6 "$log"
- ;;
-
-*)
- echo "usage: ppp-[up|down] [ isp ]" 1>&2
- exit 1
- ;;
-esac
//GO.SYSIN DD ppp-up
|