mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 03:01:09 +02:00
add an optional parameter to scan_interfaces() that can override the network config file (defaults to 'network')
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6619 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
bc8948517f
commit
d4c03cdd53
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user