[openwrt/openwrt] imx: base-files: drop redundant space after case keywords

LEDE Commits lede-commits at lists.infradead.org
Fri Apr 1 05:33:27 PDT 2022


pepe2k pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/4b1b76de7ecc7706cd36035bcbc2a16da667661d

commit 4b1b76de7ecc7706cd36035bcbc2a16da667661d
Author: Piotr Dymacz <pepe2k at gmail.com>
AuthorDate: Mon Mar 14 14:39:37 2022 +0100

    imx: base-files: drop redundant space after case keywords
    
    Signed-off-by: Piotr Dymacz <pepe2k at gmail.com>
---
 .../imx/cortexa9/base-files/etc/board.d/02_network |  48 ++++----
 .../cortexa9/base-files/lib/preinit/79_move_config |   6 +-
 .../cortexa9/base-files/lib/upgrade/platform.sh    | 134 ++++++++++-----------
 3 files changed, 94 insertions(+), 94 deletions(-)

diff --git a/target/linux/imx/cortexa9/base-files/etc/board.d/02_network b/target/linux/imx/cortexa9/base-files/etc/board.d/02_network
index 1668b86008..1ef2fcdc65 100644
--- a/target/linux/imx/cortexa9/base-files/etc/board.d/02_network
+++ b/target/linux/imx/cortexa9/base-files/etc/board.d/02_network
@@ -9,34 +9,34 @@ board=$(board_name)
 board_config_update
 
 case "$board" in
-gw,imx6dl-gw51xx |\
-gw,imx6dl-gw52xx |\
-gw,imx6dl-gw5904 |\
-gw,imx6dl-gw5907 |\
-gw,imx6dl-gw5910 |\
-gw,imx6dl-gw5912 |\
-gw,imx6dl-gw5913 |\
-gw,imx6q-gw51xx |\
-gw,imx6q-gw52xx |\
-gw,imx6q-gw5904 |\
-gw,imx6q-gw5907 |\
-gw,imx6q-gw5910 |\
-gw,imx6q-gw5912 |\
-gw,imx6q-gw5913 |\
-solidrun,cubox-i/dl |\
-solidrun,cubox-i/q )
+gw,imx6dl-gw51xx|\
+gw,imx6dl-gw52xx|\
+gw,imx6dl-gw5904|\
+gw,imx6dl-gw5907|\
+gw,imx6dl-gw5910|\
+gw,imx6dl-gw5912|\
+gw,imx6dl-gw5913|\
+gw,imx6q-gw51xx|\
+gw,imx6q-gw52xx|\
+gw,imx6q-gw5904|\
+gw,imx6q-gw5907|\
+gw,imx6q-gw5910|\
+gw,imx6q-gw5912|\
+gw,imx6q-gw5913|\
+solidrun,cubox-i/dl|\
+solidrun,cubox-i/q)
 	ucidef_set_interface_lan 'eth0'
 	;;
-gw,imx6dl-gw53xx |\
-gw,imx6dl-gw54xx |\
-gw,imx6dl-gw552x |\
-gw,imx6q-gw53xx |\
-gw,imx6q-gw5400-a |\
-gw,imx6q-gw54xx |\
-gw,imx6q-gw552x )
+gw,imx6dl-gw53xx|\
+gw,imx6dl-gw54xx|\
+gw,imx6dl-gw552x|\
+gw,imx6q-gw53xx|\
+gw,imx6q-gw5400-a|\
+gw,imx6q-gw54xx|\
+gw,imx6q-gw552x)
 	ucidef_set_interfaces_lan_wan 'eth0' 'eth1'
 	;;
-wand,imx6dl-wandboard )
+wand,imx6dl-wandboard)
 	ucidef_set_interface_wan 'eth0'
 	;;
 esac
diff --git a/target/linux/imx/cortexa9/base-files/lib/preinit/79_move_config b/target/linux/imx/cortexa9/base-files/lib/preinit/79_move_config
index 6ed59320ac..7188c2d8f4 100644
--- a/target/linux/imx/cortexa9/base-files/lib/preinit/79_move_config
+++ b/target/linux/imx/cortexa9/base-files/lib/preinit/79_move_config
@@ -6,9 +6,9 @@ move_config() {
 	local board=$(board_name)
 
 	case "$board" in
-	toradex,apalis_imx6q-eval |\
-	toradex,apalis_imx6q-ixora |\
-	toradex,apalis_imx6q-ixora-v1.1 )
+	toradex,apalis_imx6q-eval|\
+	toradex,apalis_imx6q-ixora|\
+	toradex,apalis_imx6q-ixora-v1.1)
 		if [ -b $(bootpart_from_uuid) ]; then
 			apalis_mount_boot
 			[ -f "/boot/$BACKUP_FILE" ] && mv -f "/boot/$BACKUP_FILE" /
diff --git a/target/linux/imx/cortexa9/base-files/lib/upgrade/platform.sh b/target/linux/imx/cortexa9/base-files/lib/upgrade/platform.sh
index e18d59c771..d6f8fb82a6 100755
--- a/target/linux/imx/cortexa9/base-files/lib/upgrade/platform.sh
+++ b/target/linux/imx/cortexa9/base-files/lib/upgrade/platform.sh
@@ -8,11 +8,11 @@ RAMFS_COPY_BIN='blkid jffs2reset'
 
 enable_image_metadata_check() {
 	case "$(board_name)" in
-		toradex,apalis_imx6q-eval |\
-		toradex,apalis_imx6q-ixora |\
-		toradex,apalis_imx6q-ixora-v1.1 )
-			REQUIRE_IMAGE_METADATA=1
-			;;
+	toradex,apalis_imx6q-eval|\
+	toradex,apalis_imx6q-ixora|\
+	toradex,apalis_imx6q-ixora-v1.1)
+		REQUIRE_IMAGE_METADATA=1
+		;;
 	esac
 }
 enable_image_metadata_check
@@ -36,37 +36,37 @@ platform_check_image() {
 	local board=$(board_name)
 
 	case "$board" in
-	gw,imx6dl-gw51xx |\
-	gw,imx6dl-gw52xx |\
-	gw,imx6dl-gw53xx |\
-	gw,imx6dl-gw54xx |\
-	gw,imx6dl-gw551x |\
-	gw,imx6dl-gw552x |\
-	gw,imx6dl-gw553x |\
-	gw,imx6dl-gw5904 |\
-	gw,imx6dl-gw5907 |\
-	gw,imx6dl-gw5910 |\
-	gw,imx6dl-gw5912 |\
-	gw,imx6dl-gw5913 |\
-	gw,imx6q-gw51xx |\
-	gw,imx6q-gw52xx |\
-	gw,imx6q-gw53xx |\
-	gw,imx6q-gw5400-a |\
-	gw,imx6q-gw54xx |\
-	gw,imx6q-gw551x |\
-	gw,imx6q-gw552x |\
-	gw,imx6q-gw553x |\
-	gw,imx6q-gw5904 |\
-	gw,imx6q-gw5907 |\
-	gw,imx6q-gw5910 |\
-	gw,imx6q-gw5912 |\
-	gw,imx6q-gw5913 )
+	gw,imx6dl-gw51xx|\
+	gw,imx6dl-gw52xx|\
+	gw,imx6dl-gw53xx|\
+	gw,imx6dl-gw54xx|\
+	gw,imx6dl-gw551x|\
+	gw,imx6dl-gw552x|\
+	gw,imx6dl-gw553x|\
+	gw,imx6dl-gw5904|\
+	gw,imx6dl-gw5907|\
+	gw,imx6dl-gw5910|\
+	gw,imx6dl-gw5912|\
+	gw,imx6dl-gw5913|\
+	gw,imx6q-gw51xx|\
+	gw,imx6q-gw52xx|\
+	gw,imx6q-gw53xx|\
+	gw,imx6q-gw5400-a|\
+	gw,imx6q-gw54xx|\
+	gw,imx6q-gw551x|\
+	gw,imx6q-gw552x|\
+	gw,imx6q-gw553x|\
+	gw,imx6q-gw5904|\
+	gw,imx6q-gw5907|\
+	gw,imx6q-gw5910|\
+	gw,imx6q-gw5912|\
+	gw,imx6q-gw5913)
 		nand_do_platform_check $board $1
 		return $?;
 		;;
-	toradex,apalis_imx6q-eval |\
-	toradex,apalis_imx6q-ixora |\
-	toradex,apalis_imx6q-ixora-v1.1 )
+	toradex,apalis_imx6q-eval|\
+	toradex,apalis_imx6q-ixora|\
+	toradex,apalis_imx6q-ixora-v1.1)
 		return 0
 		;;
 	esac
@@ -79,36 +79,36 @@ platform_do_upgrade() {
 	local board=$(board_name)
 
 	case "$board" in
-	gw,imx6dl-gw51xx |\
-	gw,imx6dl-gw52xx |\
-	gw,imx6dl-gw53xx |\
-	gw,imx6dl-gw54xx |\
-	gw,imx6dl-gw551x |\
-	gw,imx6dl-gw552x |\
-	gw,imx6dl-gw553x |\
-	gw,imx6dl-gw5904 |\
-	gw,imx6dl-gw5907 |\
-	gw,imx6dl-gw5910 |\
-	gw,imx6dl-gw5912 |\
-	gw,imx6dl-gw5913 |\
-	gw,imx6q-gw51xx |\
-	gw,imx6q-gw52xx |\
-	gw,imx6q-gw53xx |\
-	gw,imx6q-gw5400-a |\
-	gw,imx6q-gw54xx |\
-	gw,imx6q-gw551x |\
-	gw,imx6q-gw552x |\
-	gw,imx6q-gw553x |\
-	gw,imx6q-gw5904 |\
-	gw,imx6q-gw5907 |\
-	gw,imx6q-gw5910 |\
-	gw,imx6q-gw5912 |\
-	gw,imx6q-gw5913 )
+	gw,imx6dl-gw51xx|\
+	gw,imx6dl-gw52xx|\
+	gw,imx6dl-gw53xx|\
+	gw,imx6dl-gw54xx|\
+	gw,imx6dl-gw551x|\
+	gw,imx6dl-gw552x|\
+	gw,imx6dl-gw553x|\
+	gw,imx6dl-gw5904|\
+	gw,imx6dl-gw5907|\
+	gw,imx6dl-gw5910|\
+	gw,imx6dl-gw5912|\
+	gw,imx6dl-gw5913|\
+	gw,imx6q-gw51xx|\
+	gw,imx6q-gw52xx|\
+	gw,imx6q-gw53xx|\
+	gw,imx6q-gw5400-a|\
+	gw,imx6q-gw54xx|\
+	gw,imx6q-gw551x|\
+	gw,imx6q-gw552x|\
+	gw,imx6q-gw553x|\
+	gw,imx6q-gw5904|\
+	gw,imx6q-gw5907|\
+	gw,imx6q-gw5910|\
+	gw,imx6q-gw5912|\
+	gw,imx6q-gw5913)
 		nand_do_upgrade "$1"
 		;;
-	toradex,apalis_imx6q-eval |\
-	toradex,apalis_imx6q-ixora |\
-	toradex,apalis_imx6q-ixora-v1.1 )
+	toradex,apalis_imx6q-eval|\
+	toradex,apalis_imx6q-ixora|\
+	toradex,apalis_imx6q-ixora-v1.1)
 		apalis_do_upgrade "$1"
 		;;
 	esac
@@ -118,9 +118,9 @@ platform_copy_config() {
 	local board=$(board_name)
 
 	case "$board" in
-	toradex,apalis_imx6q-eval |\
-	toradex,apalis_imx6q-ixora |\
-	toradex,apalis_imx6q-ixora-v1.1 )
+	toradex,apalis_imx6q-eval|\
+	toradex,apalis_imx6q-ixora|\
+	toradex,apalis_imx6q-ixora-v1.1)
 		apalis_copy_config
 		;;
 	esac
@@ -130,9 +130,9 @@ platform_pre_upgrade() {
 	local board=$(board_name)
 
 	case "$board" in
-	toradex,apalis_imx6q-eval |\
-	toradex,apalis_imx6q-ixora |\
-	toradex,apalis_imx6q-ixora-v1.1 )
+	toradex,apalis_imx6q-eval|\
+	toradex,apalis_imx6q-ixora|\
+	toradex,apalis_imx6q-ixora-v1.1)
 		[ -z "$UPGRADE_BACKUP" ] && {
 			jffs2reset -y
 			umount /overlay




More information about the lede-commits mailing list