summaryrefslogtreecommitdiff
path: root/package/base-files/files/lib/functions/uci-defaults-new.sh
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2014-09-14 23:15:00 +0000
committerLuka Perkov <luka@openwrt.org>2014-09-14 23:15:00 +0000
commita8b6ca879754c584d7693d892f3764654355e02c (patch)
tree061eebf26339371ca893a945a3a08c25c4078495 /package/base-files/files/lib/functions/uci-defaults-new.sh
parent9434dfee875e5bfec58b5df5a53565a952d11f24 (diff)
downloadmtk-20170518-a8b6ca879754c584d7693d892f3764654355e02c.zip
mtk-20170518-a8b6ca879754c584d7693d892f3764654355e02c.tar.gz
mtk-20170518-a8b6ca879754c584d7693d892f3764654355e02c.tar.bz2
base-files: whitespace fixes
Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 42542
Diffstat (limited to 'package/base-files/files/lib/functions/uci-defaults-new.sh')
-rwxr-xr-xpackage/base-files/files/lib/functions/uci-defaults-new.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/package/base-files/files/lib/functions/uci-defaults-new.sh b/package/base-files/files/lib/functions/uci-defaults-new.sh
index 528835b..ba954de 100755
--- a/package/base-files/files/lib/functions/uci-defaults-new.sh
+++ b/package/base-files/files/lib/functions/uci-defaults-new.sh
@@ -13,7 +13,7 @@ json_select_array() {
json_add_array $1
json_close_array
- json_select "$1"
+ json_select "$1"
}
json_select_object() {
@@ -25,7 +25,7 @@ json_select_object() {
json_add_object $1
json_close_object
- json_select "$1"
+ json_select "$1"
}
_ucidef_set_interface() {
@@ -34,7 +34,7 @@ _ucidef_set_interface() {
json_select_object $name
json_add_string ifname "${iface%%.*}"
- [ "$iface" == "${iface%%.*}" ] || json_add_boolean create_vlan 1
+ [ "$iface" == "${iface%%.*}" ] || json_add_boolean create_vlan 1
json_select ..
}
@@ -69,7 +69,7 @@ ucidef_add_switch() {
json_select_object switch
- json_select_object $name
+ json_select_object $name
[ "$enable" -eq 1 ] && json_add_boolean enable 1
[ "$reset" -eq 1 ] && json_add_boolean reset 1
json_select ..
@@ -84,7 +84,7 @@ ucidef_add_switch_attr() {
json_select_object switch
- json_select_object $name
+ json_select_object $name
json_add_string $key $val
json_select ..