openwrt: honour gcc extra configuration flags
[openwrt.git] / package / ppp / files / ppp.sh
index 9f50e85..5ca1cf9 100644 (file)
@@ -1,9 +1,12 @@
 scan_ppp() {
        config_get ifname "$1" ifname
        pppdev="${pppdev:-0}"
-       config_set "$1" ifname "ppp$pppdev"
-       config_set "$1" unit "$pppdev"
-       pppdev="$(($pppdev + 1))"
+       config_get unit "$1" unit
+       [ -z "$unit" ] && {
+               config_set "$1" ifname "ppp$pppdev"
+               config_set "$1" unit "$pppdev"
+               pppdev="$(($pppdev + 1))"
+       }
 }
 
 start_pppd() {
This page took 0.020139 seconds and 4 git commands to generate.