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
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to