aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorOlliver Schinagl <oliver@schinagl.nl>2022-09-21 17:57:53 +0200
committerOlliver Schinagl <oliver@schinagl.nl>2022-09-22 21:37:45 +0200
commit211f4302e4f64e84e2895c6ed55fc1f43da56528 (patch)
tree8a4969537b34cd43e101a179e0d74f6a5cf675d3 /package/base-files
parentc787962e1d5016cab637cf8857bc6aa3afdda001 (diff)
downloadupstream-211f4302e4f64e84e2895c6ed55fc1f43da56528.tar.gz
upstream-211f4302e4f64e84e2895c6ed55fc1f43da56528.tar.bz2
upstream-211f4302e4f64e84e2895c6ed55fc1f43da56528.zip
base-files: Actually set default name
The currently used shell expansion doesn't seem to exist [0] and also does not work. This surely was not intended, so lets allow default naming to actually work. [0]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html Fixes: be09c5a3cd65 ("base-files: add board.d support for bridge device") Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Diffstat (limited to 'package/base-files')
-rw-r--r--package/base-files/files/lib/functions/uci-defaults.sh2
1 files changed, 1 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 4f5b9634bb..86f16b5125 100644
--- a/package/base-files/files/lib/functions/uci-defaults.sh
+++ b/package/base-files/files/lib/functions/uci-defaults.sh
@@ -96,7 +96,7 @@ ucidef_set_interfaces_lan_wan() {
ucidef_set_bridge_device() {
json_select_object bridge
- json_add_string name "${1:switch0}"
+ json_add_string name "${1:-switch0}"
json_select ..
}