aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-03-19 22:06:31 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-03-19 22:06:31 +0000
commit44890cf7607063a305f859555e8a70ed1f4ed311 (patch)
tree77092fbfd92ddcf7cb9691a425ec9e60984ba4e6 /package
parent9048717187667e23e82dfaa7e039efa0bebd74be (diff)
downloadmaster-187ad058-44890cf7607063a305f859555e8a70ed1f4ed311.tar.gz
master-187ad058-44890cf7607063a305f859555e8a70ed1f4ed311.tar.bz2
master-187ad058-44890cf7607063a305f859555e8a70ed1f4ed311.zip
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
Diffstat (limited to 'package')
-rwxr-xr-xpackage/base-files/files/lib/network/config.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh
index 8a596874d4..cab2e06f0e 100755
--- 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() {