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
commitf9abb7cbba2d353f5b997b39ee0ffb3ea9985bcd (patch)
treea3475e77f44cf6b5d7233318313b8c54adbe9e69 /package
parentb8ca430c7fdc5f0b8a116acd08038b7308904b03 (diff)
downloadupstream-f9abb7cbba2d353f5b997b39ee0ffb3ea9985bcd.tar.gz
upstream-f9abb7cbba2d353f5b997b39ee0ffb3ea9985bcd.tar.bz2
upstream-f9abb7cbba2d353f5b997b39ee0ffb3ea9985bcd.zip
add an optional parameter to scan_interfaces() that can override the network config file (defaults to 'network')
SVN-Revision: 6619
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() {