projects
/
openwrt
/
staging
/
neocturne.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8ca430
)
add an optional parameter to scan_interfaces() that can override the network config...
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 19 Mar 2007 22:06:31 +0000
(22:06 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 19 Mar 2007 22:06:31 +0000
(22:06 +0000)
SVN-Revision: 6619
package/base-files/files/lib/network/config.sh
patch
|
blob
|
history
diff --git
a/package/base-files/files/lib/network/config.sh
b/package/base-files/files/lib/network/config.sh
index 8a596874d4c4913d1668cf87e18020aea649fb91..cab2e06f0e3d3e7ed2d39f6b8b1713ac4c8f7d5a 100755
(executable)
--- a/
package/base-files/files/lib/network/config.sh
+++ b/
package/base-files/files/lib/network/config.sh
@@
-24,6
+24,7
@@
find_config() {
}
scan_interfaces() {
+ local cfgfile="$1"
local mode iftype iface ifname device
interfaces=
config_cb() {
@@
-50,7
+51,7
@@
scan_interfaces() {
;;
esac
}
- config_load
network
+ config_load
"${cfgfile:-network}"
}
add_vlan() {