uboot-envtools: fix code formatting style in uci-defaults files
authorPiotr Dymacz <pepe2k@gmail.com>
Tue, 13 Dec 2016 21:30:11 +0000 (22:30 +0100)
committerJohn Crispin <john@phrozen.org>
Tue, 20 Dec 2016 08:35:36 +0000 (09:35 +0100)
Few minor code formatting style fixes, including:

- keep one board per line
- always use "|\" (for consistency)
- remove redundant double quotes and empty lines

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
package/boot/uboot-envtools/files/ar71xx
package/boot/uboot-envtools/files/imx6
package/boot/uboot-envtools/files/ipq
package/boot/uboot-envtools/files/kirkwood
package/boot/uboot-envtools/files/mvebu
package/boot/uboot-envtools/files/oxnas
package/boot/uboot-envtools/files/ramips

index 3d8d877d5e25c51c3e54ecdac2fc12fd5f00706c..6c076a1e5f427ba3c188ff8d3620e4f130e2ed33 100644 (file)
@@ -14,49 +14,49 @@ touch /etc/config/ubootenv
 board=$(ar71xx_board_name)
 
 case "$board" in
-alfa-ap120c | \
-all0258n | \
-ap90q | \
-cap324 | \
-cap4200ag | \
-carambola2 | \
-cpe830 | \
-cpe870 | \
-cr3000 | \
-cr5000 | \
-eap300v2 | \
-gl-ar300m | \
-hornet-ub | \
-hornet-ub-x2 | \
-jwap230 | \
-mr1750 | \
-mr1750v2 | \
-mr600 | \
-mr600v2 | \
-mr900 | \
-mr900v2 | \
-nbg6716 | \
-om5p | \
-om5p-ac | \
-om5p-acv2 | \
-om5p-an | \
-sr3200 | \
-tube2h | \
-wndr3700 | \
+alfa-ap120c|\
+all0258n|\
+ap90q|\
+cap324|\
+cap4200ag|\
+carambola2|\
+cpe830|\
+cpe870|\
+cr3000|\
+cr5000|\
+eap300v2|\
+gl-ar300m|\
+hornet-ub|\
+hornet-ub-x2|\
+jwap230|\
+mr1750|\
+mr1750v2|\
+mr600|\
+mr600v2|\
+mr900|\
+mr900v2|\
+nbg6716|\
+om5p|\
+om5p-ac|\
+om5p-acv2|\
+om5p-an|\
+sr3200|\
+tube2h|\
+wndr3700|\
 xd3200)
        ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
        ;;
-alfa-ap96 | \
-all0315n | \
-om2p | \
-om2p-hs | \
-om2p-hsv2 | \
-om2p-hsv3 | \
-om2p-lc | \
+alfa-ap96|\
+all0315n|\
+om2p|\
+om2p-hs|\
+om2p-hsv2|\
+om2p-hsv3|\
+om2p-lc|\
 om2pv2)
        ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x40000"
        ;;
-dap-2695-a1 | \
+dap-2695-a1|\
 wzr-hp-ag300h)
        ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
        ;;
index d7412b2aaa008c826efa16f8076c7d47a012d47c..a78c4fbe5389b8bbac1aa67a4d83445b9632180f 100644 (file)
@@ -25,7 +25,7 @@ case "$board" in
                ubootenv_add_uci_config /dev/mmcblk0 0xd1400 0x20000 0x20000
        fi
        ;;
-"wandboard")
+wandboard)
        ubootenv_add_uci_config "/dev/mmcblk0" "0x60000" "0x2000" "0x2000"
        ;;
 esac
index 369f90f2b0f3cee6a15b0547ac375fb3bebc78a4..16c7ba6bb7c2036d3747b2397de73b61f2899e48 100755 (executable)
@@ -13,12 +13,11 @@ touch /etc/config/ubootenv
 
 board=$(ipq806x_board_name)
 
-
 case "$board" in
-"ea8500")
+ea8500)
        ubootenv_add_uci_config "/dev/mtd10" "0x0" "0x20000" "0x20000"
        ;;
-"nbg6817")
+nbg6817)
        ubootenv_add_uci_config "/dev/mtdblock9" "0x0" "0x10000" "0x10000"
        ;;
 esac
index b4a4d4e1c111c2acaf5f0ef52c116affb0b3111d..055e0eba427e4eab8a591e48eb8626444db68d39 100644 (file)
@@ -14,16 +14,16 @@ touch /etc/config/ubootenv
 board=$(kirkwood_board_name)
 
 case "$board" in
-"dockstar" | \
-"guruplug-server-plus" | \
-"ib62x0" | \
-"linksys-viper" | \
-"pogo_e02" | \
-"sheevaplug" | \
-"sheevaplug-esata" )
+dockstar|\
+guruplug-server-plus|\
+ib62x0|\
+linksys-viper|\
+pogo_e02|\
+sheevaplug|\
+sheevaplug-esata)
        ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
        ;;
-"linksys-audi")
+linksys-audi)
        ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x4000" "0x4000"
        ;;
 esac
index 9b826daffc1d789aabdc92051ff7deb69c4ffa06..2bbbc23661444bdfeffdafb8e85d0091849d9249 100644 (file)
@@ -15,7 +15,9 @@ touch /etc/config/ubootenv
 board=$(mvebu_board_name)
 
 case "$board" in
-armada-385-linksys-caiman|armada-385-linksys-cobra|armada-385-linksys-shelby)
+armada-385-linksys-caiman|\
+armada-385-linksys-cobra|\
+armada-385-linksys-shelby)
        ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x40000"
        ;;
 armada-385-linksys-rango)
index dff89deca994a0c9ce6730fb593d1c2e3a5f7836..ac4744e3e26a2061667ed11862fc4dc0cbeb2f79 100644 (file)
@@ -14,8 +14,8 @@ touch /etc/config/ubootenv
 board=$(oxnas_board_name)
 
 case "$board" in
-akitio | \
-kd20 | \
+akitio|\
+kd20|\
 stg212)
        ubootenv_add_uci_config "/dev/ubi0_0" "0x0" "0x4000" "0x1F000" "1"
        ubootenv_add_uci_config "/dev/ubi0_1" "0x0" "0x4000" "0x1F000" "1"
index 4993d106a6a48cab243efc4346832934ed3d5b30..c5d7ecb364822aa774f307ef2da1b9d29c9c9947 100644 (file)
@@ -14,18 +14,18 @@ touch /etc/config/ubootenv
 board=$(ramips_board_name)
 
 case "$board" in
-all0239-3g | \
-all0256n | \
+all0239-3g|\
+all0256n|\
 all5002)
        ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
        ;;
-br6425 | \
-linkits7688 | \
-linkits7688d | \
-miwifi-nano | \
-sk-wb8 | \
-wsr-1166 | \
-wsr-600 | \
+br6425|\
+linkits7688|\
+linkits7688d|\
+miwifi-nano|\
+sk-wb8|\
+wsr-1166|\
+wsr-600|\
 zbt-wg2626)
        ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
        ;;