Skip to content
Snippets Groups Projects
Commit f9abb7cb authored by Felix Fietkau's avatar Felix Fietkau
Browse files

add an optional parameter to scan_interfaces() that can override the network...

add an optional parameter to scan_interfaces() that can override the network config file (defaults to 'network')

SVN-Revision: 6619
parent b8ca430c
No related branches found
No related tags found
No related merge requests found
......@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment