mirror of https://github.com/hak5/openwrt.git
uboot-envtools: fix code formatting style in uci-defaults files
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>lede-17.01
parent
f70a2adca1
commit
35ed3be59f
|
@ -14,49 +14,49 @@ touch /etc/config/ubootenv
|
||||||
board=$(ar71xx_board_name)
|
board=$(ar71xx_board_name)
|
||||||
|
|
||||||
case "$board" in
|
case "$board" in
|
||||||
alfa-ap120c | \
|
alfa-ap120c|\
|
||||||
all0258n | \
|
all0258n|\
|
||||||
ap90q | \
|
ap90q|\
|
||||||
cap324 | \
|
cap324|\
|
||||||
cap4200ag | \
|
cap4200ag|\
|
||||||
carambola2 | \
|
carambola2|\
|
||||||
cpe830 | \
|
cpe830|\
|
||||||
cpe870 | \
|
cpe870|\
|
||||||
cr3000 | \
|
cr3000|\
|
||||||
cr5000 | \
|
cr5000|\
|
||||||
eap300v2 | \
|
eap300v2|\
|
||||||
gl-ar300m | \
|
gl-ar300m|\
|
||||||
hornet-ub | \
|
hornet-ub|\
|
||||||
hornet-ub-x2 | \
|
hornet-ub-x2|\
|
||||||
jwap230 | \
|
jwap230|\
|
||||||
mr1750 | \
|
mr1750|\
|
||||||
mr1750v2 | \
|
mr1750v2|\
|
||||||
mr600 | \
|
mr600|\
|
||||||
mr600v2 | \
|
mr600v2|\
|
||||||
mr900 | \
|
mr900|\
|
||||||
mr900v2 | \
|
mr900v2|\
|
||||||
nbg6716 | \
|
nbg6716|\
|
||||||
om5p | \
|
om5p|\
|
||||||
om5p-ac | \
|
om5p-ac|\
|
||||||
om5p-acv2 | \
|
om5p-acv2|\
|
||||||
om5p-an | \
|
om5p-an|\
|
||||||
sr3200 | \
|
sr3200|\
|
||||||
tube2h | \
|
tube2h|\
|
||||||
wndr3700 | \
|
wndr3700|\
|
||||||
xd3200)
|
xd3200)
|
||||||
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
|
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
|
||||||
;;
|
;;
|
||||||
alfa-ap96 | \
|
alfa-ap96|\
|
||||||
all0315n | \
|
all0315n|\
|
||||||
om2p | \
|
om2p|\
|
||||||
om2p-hs | \
|
om2p-hs|\
|
||||||
om2p-hsv2 | \
|
om2p-hsv2|\
|
||||||
om2p-hsv3 | \
|
om2p-hsv3|\
|
||||||
om2p-lc | \
|
om2p-lc|\
|
||||||
om2pv2)
|
om2pv2)
|
||||||
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x40000"
|
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x40000"
|
||||||
;;
|
;;
|
||||||
dap-2695-a1 | \
|
dap-2695-a1|\
|
||||||
wzr-hp-ag300h)
|
wzr-hp-ag300h)
|
||||||
ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
|
ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -25,7 +25,7 @@ case "$board" in
|
||||||
ubootenv_add_uci_config /dev/mmcblk0 0xd1400 0x20000 0x20000
|
ubootenv_add_uci_config /dev/mmcblk0 0xd1400 0x20000 0x20000
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
"wandboard")
|
wandboard)
|
||||||
ubootenv_add_uci_config "/dev/mmcblk0" "0x60000" "0x2000" "0x2000"
|
ubootenv_add_uci_config "/dev/mmcblk0" "0x60000" "0x2000" "0x2000"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -13,12 +13,11 @@ touch /etc/config/ubootenv
|
||||||
|
|
||||||
board=$(ipq806x_board_name)
|
board=$(ipq806x_board_name)
|
||||||
|
|
||||||
|
|
||||||
case "$board" in
|
case "$board" in
|
||||||
"ea8500")
|
ea8500)
|
||||||
ubootenv_add_uci_config "/dev/mtd10" "0x0" "0x20000" "0x20000"
|
ubootenv_add_uci_config "/dev/mtd10" "0x0" "0x20000" "0x20000"
|
||||||
;;
|
;;
|
||||||
"nbg6817")
|
nbg6817)
|
||||||
ubootenv_add_uci_config "/dev/mtdblock9" "0x0" "0x10000" "0x10000"
|
ubootenv_add_uci_config "/dev/mtdblock9" "0x0" "0x10000" "0x10000"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -14,16 +14,16 @@ touch /etc/config/ubootenv
|
||||||
board=$(kirkwood_board_name)
|
board=$(kirkwood_board_name)
|
||||||
|
|
||||||
case "$board" in
|
case "$board" in
|
||||||
"dockstar" | \
|
dockstar|\
|
||||||
"guruplug-server-plus" | \
|
guruplug-server-plus|\
|
||||||
"ib62x0" | \
|
ib62x0|\
|
||||||
"linksys-viper" | \
|
linksys-viper|\
|
||||||
"pogo_e02" | \
|
pogo_e02|\
|
||||||
"sheevaplug" | \
|
sheevaplug|\
|
||||||
"sheevaplug-esata" )
|
sheevaplug-esata)
|
||||||
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
|
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
|
||||||
;;
|
;;
|
||||||
"linksys-audi")
|
linksys-audi)
|
||||||
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x4000" "0x4000"
|
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x4000" "0x4000"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -15,7 +15,9 @@ touch /etc/config/ubootenv
|
||||||
board=$(mvebu_board_name)
|
board=$(mvebu_board_name)
|
||||||
|
|
||||||
case "$board" in
|
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"
|
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x40000"
|
||||||
;;
|
;;
|
||||||
armada-385-linksys-rango)
|
armada-385-linksys-rango)
|
||||||
|
|
|
@ -14,8 +14,8 @@ touch /etc/config/ubootenv
|
||||||
board=$(oxnas_board_name)
|
board=$(oxnas_board_name)
|
||||||
|
|
||||||
case "$board" in
|
case "$board" in
|
||||||
akitio | \
|
akitio|\
|
||||||
kd20 | \
|
kd20|\
|
||||||
stg212)
|
stg212)
|
||||||
ubootenv_add_uci_config "/dev/ubi0_0" "0x0" "0x4000" "0x1F000" "1"
|
ubootenv_add_uci_config "/dev/ubi0_0" "0x0" "0x4000" "0x1F000" "1"
|
||||||
ubootenv_add_uci_config "/dev/ubi0_1" "0x0" "0x4000" "0x1F000" "1"
|
ubootenv_add_uci_config "/dev/ubi0_1" "0x0" "0x4000" "0x1F000" "1"
|
||||||
|
|
|
@ -14,18 +14,18 @@ touch /etc/config/ubootenv
|
||||||
board=$(ramips_board_name)
|
board=$(ramips_board_name)
|
||||||
|
|
||||||
case "$board" in
|
case "$board" in
|
||||||
all0239-3g | \
|
all0239-3g|\
|
||||||
all0256n | \
|
all0256n|\
|
||||||
all5002)
|
all5002)
|
||||||
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
|
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
|
||||||
;;
|
;;
|
||||||
br6425 | \
|
br6425|\
|
||||||
linkits7688 | \
|
linkits7688|\
|
||||||
linkits7688d | \
|
linkits7688d|\
|
||||||
miwifi-nano | \
|
miwifi-nano|\
|
||||||
sk-wb8 | \
|
sk-wb8|\
|
||||||
wsr-1166 | \
|
wsr-1166|\
|
||||||
wsr-600 | \
|
wsr-600|\
|
||||||
zbt-wg2626)
|
zbt-wg2626)
|
||||||
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
|
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue