mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-02 17:41:07 +02:00
minor cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4939 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
c1be781808
commit
cf496205a8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user