SVN: rc-scripts/trunk/sysconfig/network-scripts/ifup-ppp

blues blues at pld-linux.org
Tue Jun 10 23:00:17 CEST 2008


Author: blues
Date: Tue Jun 10 23:00:17 2008
New Revision: 9801

Modified:
   rc-scripts/trunk/sysconfig/network-scripts/ifup-ppp
Log:
- try last resort in setting MODEMPORT - compatibility change.


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	Tue Jun 10 23:00:17 2008
@@ -138,8 +138,13 @@
 fi
 
 if [ -z "$MODEMPORT" ]; then
-	echo >&2 "Missing modemport!"
-	exit 1
+	# Last try:
+	if [ "${PPPOA_VPI}" -a "${PPPOA_VCI}" ]; then
+		MODEMPORT=${PPPOA_VPI}.${PPPOA_VCI}
+	else
+		echo >&2 "Missing modemport!"
+		exit 1
+	fi
 fi
 
 if [ -z "$HOLDOFF" ]; then


More information about the pld-cvs-commit mailing list