projects
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d275f1a
)
fix ppp unit number issues (#2178)
author
nbd
<nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 7 Sep 2007 13:09:17 +0000
(13:09 +0000)
committer
nbd
<nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 7 Sep 2007 13:09:17 +0000
(13:09 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8665
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
package/ppp/files/ppp.sh
patch
|
blob
|
history
diff --git
a/package/ppp/files/ppp.sh
b/package/ppp/files/ppp.sh
index
9f50e85
..
5ca1cf9
100644
(file)
--- a/
package/ppp/files/ppp.sh
+++ b/
package/ppp/files/ppp.sh
@@
-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.022461 seconds
and
4
git commands to generate.