Plan 9 from Bell Labs’s /usr/web/sources/contrib/boyd/sys/src/cmd/ppp-up.bundle

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


# 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

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.