SVN: rc-scripts/trunk/sysconfig/network-scripts/ifup-ppp
glen
glen at pld-linux.org
Mon Feb 18 21:56:16 CET 2008
Author: glen
Date: Mon Feb 18 21:56:16 2008
New Revision: 9424
Modified:
rc-scripts/trunk/sysconfig/network-scripts/ifup-ppp
Log:
- require $MODEMPORT being character device (/dev/modem, /dev/tts/USB0)
Modified: rc-scripts/trunk/sysconfig/network-scripts/ifup-ppp
==============================================================================
--- rc-scripts/trunk/sysconfig/network-scripts/ifup-ppp (original)
+++ rc-scripts/trunk/sysconfig/network-scripts/ifup-ppp Mon Feb 18 21:56:16 2008
@@ -136,6 +136,11 @@
exit 1
fi
+if [ ! -c "$MODEMPORT" ]; then
+ echo >&2 "MODEMPORT=$MODEMPORT is not a character device!"
+ exit 1
+fi
+
if [ -z "$HOLDOFF" ]; then
HOLDOFF=30
fi
More information about the pld-cvs-commit
mailing list