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

minor cleanup

SVN-Revision: 4939
parent daa77961
No related branches found
No related tags found
No related merge requests found
......@@ -59,17 +59,14 @@ add_vlan() {
setup_interface() {
local iface="$1"
local config="$2"
local proto="$3"
local proto
[ -n "$config" ] || {
config=$(find_config "$iface")
[ "$?" = 0 ] || return 1
}
[ -n "$proto" ] || {
config_get proto "$config" proto
}
proto="${3:-$(config_get "$config" proto)}"
config_get iftype "$config" type
# Setup VLAN interfaces
......
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