1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-20 02:44:59 +02:00

fix ppp unit number issues (#2178)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8665 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2007-09-07 13:09:17 +00:00
parent d275f1aba0
commit de3a8f9eb7

View File

@ -1,10 +1,13 @@
scan_ppp() { scan_ppp() {
config_get ifname "$1" ifname config_get ifname "$1" ifname
pppdev="${pppdev:-0}" pppdev="${pppdev:-0}"
config_get unit "$1" unit
[ -z "$unit" ] && {
config_set "$1" ifname "ppp$pppdev" config_set "$1" ifname "ppp$pppdev"
config_set "$1" unit "$pppdev" config_set "$1" unit "$pppdev"
pppdev="$(($pppdev + 1))" pppdev="$(($pppdev + 1))"
} }
}
start_pppd() { start_pppd() {
local cfg="$1"; shift local cfg="$1"; shift