diff options
author | Florian Fainelli <florian@openwrt.org> | 2014-09-25 19:08:56 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2014-09-25 19:08:56 +0000 |
commit | ccd5dae4f1dea070f97ca23f3e43e0a46c130258 (patch) | |
tree | 71beedc2702d0189f1b8a352cb463107cfe69731 /package/base-files/files | |
parent | e4c755d65fd58bf223fb055e4db24c834996eb3f (diff) | |
download | upstream-ccd5dae4f1dea070f97ca23f3e43e0a46c130258.tar.gz upstream-ccd5dae4f1dea070f97ca23f3e43e0a46c130258.tar.bz2 upstream-ccd5dae4f1dea070f97ca23f3e43e0a46c130258.zip |
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
Diffstat (limited to 'package/base-files/files')
-rw-r--r-- | package/base-files/files/lib/functions/uci-defaults.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/base-files/files/lib/functions/uci-defaults.sh b/package/base-files/files/lib/functions/uci-defaults.sh index f144adefb4..e90090c40b 100644 --- a/package/base-files/files/lib/functions/uci-defaults.sh +++ b/package/base-files/files/lib/functions/uci-defaults.sh @@ -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 } |