diff options
author | Michael K. Johnson <johnsonm@redhat.com> | 1997-09-16 18:27:40 +0000 |
---|---|---|
committer | Michael K. Johnson <johnsonm@redhat.com> | 1997-09-16 18:27:40 +0000 |
commit | 15bb4512255d2790567231b99c54a45a98644d71 (patch) | |
tree | 0fc378da6900ed36a9eee114fec532add4fa4e85 /sysconfig/network-scripts/ifup-ppp | |
parent | 9d4ab932f93b7193ea86f230aae060b5b68f0308 (diff) | |
download | initscripts-15bb4512255d2790567231b99c54a45a98644d71.tar initscripts-15bb4512255d2790567231b99c54a45a98644d71.tar.gz initscripts-15bb4512255d2790567231b99c54a45a98644d71.tar.bz2 initscripts-15bb4512255d2790567231b99c54a45a98644d71.tar.xz initscripts-15bb4512255d2790567231b99c54a45a98644d71.zip |
ifup and ifdown complain if $1 not specified.
The "ifcfg-" part of the device name is now optional for ifup and ifdown.
ifdown-ppp kills a pppd's chat session if it is active.
Generic part of ifup uses MACADDR variable if present.
ifup-ppp honors DEBUG variable, both for pppd (debug) and chat (-v).
Diffstat (limited to 'sysconfig/network-scripts/ifup-ppp')
-rwxr-xr-x | sysconfig/network-scripts/ifup-ppp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-ppp b/sysconfig/network-scripts/ifup-ppp index f1b5813f..7b5cb377 100755 --- a/sysconfig/network-scripts/ifup-ppp +++ b/sysconfig/network-scripts/ifup-ppp @@ -63,6 +63,9 @@ fi if [ -n "${PAPNAME}" ] ; then opts="$opts name ${PAPNAME}" fi +if [ -n "${DEBUG}" ] ; then + opts="$opts debug" +fi while : ; do (logger -p daemon.info -t ifup-ppp \ @@ -72,7 +75,7 @@ while : ; do /usr/sbin/pppd -detach $opts $MODEMPORT $LINESPEED \ remotename $DEVICE ipparam $DEVICE \ ${PPPOPTIONS} \ - connect "/usr/sbin/chat -f /etc/sysconfig/network-scripts/chat-$DEVICE" + connect "/usr/sbin/chat ${DEBUG:+-v} -f /etc/sysconfig/network-scripts/chat-$DEVICE" # exit if we're not supposed to persist or our lock file has disappeared if [ "$PERSIST" != "yes" -o ! -f /var/run/ppp-$DEVICE.dev ]; then |