diff options
author | Luka Perkov <luka@openwrt.org> | 2014-09-14 23:15:00 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2014-09-14 23:15:00 +0000 |
commit | 38c2d876ab5e8a22d751b0558ffe6d4debbd91fd (patch) | |
tree | 7eb9bdbe6898522e42ce13016bb14c39aa38384f /package/base-files | |
parent | 198751bd55e6853e295aa6915a453a056d09249e (diff) | |
download | upstream-38c2d876ab5e8a22d751b0558ffe6d4debbd91fd.tar.gz upstream-38c2d876ab5e8a22d751b0558ffe6d4debbd91fd.tar.bz2 upstream-38c2d876ab5e8a22d751b0558ffe6d4debbd91fd.zip |
base-files: whitespace fixes
Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42542 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rw-r--r-- | package/base-files/files/lib/functions/network.sh | 2 | ||||
-rwxr-xr-x | package/base-files/files/lib/functions/uci-defaults-new.sh | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/package/base-files/files/lib/functions/network.sh b/package/base-files/files/lib/functions/network.sh index f4cf2b5344..3a6903f2de 100644 --- a/package/base-files/files/lib/functions/network.sh +++ b/package/base-files/files/lib/functions/network.sh @@ -81,7 +81,7 @@ network_get_ipaddrs6() { if __network_ifstatus "__addr" "$2" "['ipv6-address','ipv6-prefix-assignment'][*].address"; then for __addr in $__addr; do case "$__addr" in - *:) __list="${__list:+$__list }${__addr}1" ;; + *:) __list="${__list:+$__list }${__addr}1" ;; *) __list="${__list:+$__list }${__addr}" ;; esac done 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 528835bb7f..ba954dee21 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 .. |