projects
/
lede.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
base-files: always set proto passed to _ucidef_set_interface()
[lede.git]
/
package
/
base-files
/
files
/
lib
/
functions
/
uci-defaults.sh
diff --git
a/package/base-files/files/lib/functions/uci-defaults.sh
b/package/base-files/files/lib/functions/uci-defaults.sh
index 06004c3bb5fa79348fdea6cc6bb477cc10e60ae3..7cc63ffc80ce8d6a3009b0f963ad4f0d3cec1762 100755
(executable)
--- a/
package/base-files/files/lib/functions/uci-defaults.sh
+++ b/
package/base-files/files/lib/functions/uci-defaults.sh
@@
-35,7
+35,7
@@
_ucidef_set_interface() {
json_select_object "$name"
json_add_string ifname "$iface"
- if ! json_is_a protocol string; then
+ if ! json_is_a protocol string
|| [ -n "$proto" ]
; then
case "$proto" in
static|dhcp|none|pppoe) : ;;
*)