summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-scripts/net/pppd.sh')
-rw-r--r--net-scripts/net/pppd.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/net-scripts/net/pppd.sh b/net-scripts/net/pppd.sh
index 7a19185..3b3a5b9 100644
--- a/net-scripts/net/pppd.sh
+++ b/net-scripts/net/pppd.sh
@@ -177,7 +177,8 @@ pppd_start() {
fi
if [[ " ${opts} " == *" plugin pppoatm.so "* ]] ; then
- if [[ ${!link} =~ '^[ \t]*([1-9]*[0-9]\.){1,2}[1-9]*[0-9][ \t]*$' ]] ; then
+ #if [[ ${!link} =~ '^[ \t]*([1-9]*[0-9]\.){1,2}[1-9]*[0-9][ \t]*$' ]] ; then
+ if echo "${!link}" | grep -qE '^[ \t]*([1-9]*[0-9]\.){1,2}[1-9]*[0-9][ \t]*$' ; then
insert_link_in_opts=0
else
ewarn "WARNING: An [itf.]vpi.vci ATM address was expected in ${link}"