mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-21 17:47:00 +00:00
minor cleanup
SVN-Revision: 4939
This commit is contained in:
parent
daa77961b6
commit
f24a3a5199
@ -59,17 +59,14 @@ add_vlan() {
|
|||||||
setup_interface() {
|
setup_interface() {
|
||||||
local iface="$1"
|
local iface="$1"
|
||||||
local config="$2"
|
local config="$2"
|
||||||
local proto="$3"
|
local proto
|
||||||
|
|
||||||
[ -n "$config" ] || {
|
[ -n "$config" ] || {
|
||||||
config=$(find_config "$iface")
|
config=$(find_config "$iface")
|
||||||
[ "$?" = 0 ] || return 1
|
[ "$?" = 0 ] || return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
[ -n "$proto" ] || {
|
proto="${3:-$(config_get "$config" proto)}"
|
||||||
config_get proto "$config" proto
|
|
||||||
}
|
|
||||||
|
|
||||||
config_get iftype "$config" type
|
config_get iftype "$config" type
|
||||||
|
|
||||||
# Setup VLAN interfaces
|
# Setup VLAN interfaces
|
||||||
|
Loading…
x
Reference in New Issue
Block a user