X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=scripts%2Fpon;h=ef47518c879716c50fb3948bfbcbf428e222cf4d;hp=6117fa8f63aaffb90757f786193f24ad59ad3e29;hb=07bcc935f7a10bc5d78325fc53a6ac9bdf2aad6a;hpb=f234b25aa73603e3c840b8071c819e6202d5fd14 diff --git a/scripts/pon b/scripts/pon index 6117fa8..ef47518 100644 --- a/scripts/pon +++ b/scripts/pon @@ -1,10 +1,12 @@ #!/bin/sh +PPP_ON_BOOT=/etc/ppp/ppp_on_boot + case "$1" in -*) echo " Usage: pon [provider] [arguments] -If pon is invoked without arguments, /etc/ppp/ppp_on_boot file will be +If pon is invoked without arguments, $PPP_ON_BOOT file will be run, presuming it exists and is executable. Otherwise, a PPP connection will be started using settings from /etc/ppp/peers/provider. If you specify one argument, a PPP connection will be started using @@ -16,8 +18,8 @@ pppd. ;; esac -if [ -z "$1" -a -x /etc/ppp/ppp_on_boot ]; then - exec /etc/ppp/ppp_on_boot +if [ -z "$1" -a -x "$PPP_ON_BOOT" ]; then + exec "$PPP_ON_BOOT" fi if [ -z "$1" -a ! -f /etc/ppp/peers/provider ]; then