base-files: whitespace fixes
authorLuka Perkov <luka@openwrt.org>
Sun, 14 Sep 2014 23:15:00 +0000 (23:15 +0000)
committerLuka Perkov <luka@openwrt.org>
Sun, 14 Sep 2014 23:15:00 +0000 (23:15 +0000)
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 42542

package/base-files/files/lib/functions/network.sh
package/base-files/files/lib/functions/uci-defaults-new.sh

index f4cf2b53447148f169179b6a1df3c9f971cddb67..3a6903f2deff3d307961f96d27a6dad0eab18633 100644 (file)
@@ -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
index 528835bb7ffa8ba3801c3f1ba898e7a9855e67fa..ba954dee21fc563832795cedf5dc7fe76c2922aa 100755 (executable)
@@ -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 ..