updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ppp-eaptls / pon
blob36885050b52b7ca99ef1b043d416ef519e33a386
1 #!/bin/sh
3 case "$1" in
4 -*) echo "
5 Usage: pon [provider] [arguments]
7 If you specify one argument, a PPP connection will be started using
8 settings from the appropriate file in the /etc/ppp/peers/ directory, and
9 any additional arguments supplied will be passed as extra arguments to
10 pppd.
12 exit 0
14 esac
16 if [ -z "$1" -a ! -f /etc/ppp/peers/provider ]; then
17 echo "
18 Please configure /etc/ppp/peers/provider or use a command line argument to
19 use another file in /etc/ppp/peers/ directory.
21 exit 1
24 if [ "$1" -a ! -f "/etc/ppp/peers/$1" ]; then
25 echo "
26 The file /etc/ppp/peers/$1 does not exist.
28 exit 1
31 exec /usr/sbin/pppd call ${@:-provider}