mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42665 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
e4c755d65f
commit
ccd5dae4f1
@ -158,11 +158,12 @@ EOF
|
||||
ucidef_set_interface_raw() {
|
||||
local cfg=$1
|
||||
local ifname=$2
|
||||
local proto=${3:-"none"}
|
||||
|
||||
uci batch <<EOF
|
||||
set network.$cfg='interface'
|
||||
set network.$cfg.ifname='$ifname'
|
||||
set network.$cfg.proto='none'
|
||||
set network.$cfg.proto='$proto'
|
||||
EOF
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user