From: Felix Fietkau Date: Mon, 19 Mar 2007 22:06:31 +0000 (+0000) Subject: add an optional parameter to scan_interfaces() that can override the network config... X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=60801eea4f71f2b69b9e53c6b34d08bb7c238a10 add an optional parameter to scan_interfaces() that can override the network config file (defaults to 'network') SVN-Revision: 6619 --- 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() {