base-files: add a protocol argument to ucidef_set_interface_raw
Add a third argument to ucidef_set_interface_raw, which is specifying the protocol. Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 42665
This commit is contained in:
parent
71960baa7d
commit
bc96c49c67
1 changed files with 2 additions and 1 deletions
|
@ -158,11 +158,12 @@ EOF
|
||||||
ucidef_set_interface_raw() {
|
ucidef_set_interface_raw() {
|
||||||
local cfg=$1
|
local cfg=$1
|
||||||
local ifname=$2
|
local ifname=$2
|
||||||
|
local proto=${3:-"none"}
|
||||||
|
|
||||||
uci batch <<EOF
|
uci batch <<EOF
|
||||||
set network.$cfg='interface'
|
set network.$cfg='interface'
|
||||||
set network.$cfg.ifname='$ifname'
|
set network.$cfg.ifname='$ifname'
|
||||||
set network.$cfg.proto='none'
|
set network.$cfg.proto='$proto'
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue