treewide: do not quote compatible in shell scripts
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 6 Jun 2021 17:17:47 +0000 (19:17 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 6 Jun 2021 17:17:47 +0000 (19:17 +0200)
The compatible is a literal string without any problematic
characters, so there is no reason to quote it.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/arc770/base-files/etc/board.d/02_network
target/linux/kirkwood/base-files/etc/board.d/02_network
target/linux/layerscape/base-files/lib/preinit/05_layerscape_reorder_eth

index f326f48763919a93aa07449584bb4b165031a4da..c90f3fb6a6951a2a3aaf8ac0c966f0ec041ab819 100644 (file)
@@ -7,7 +7,7 @@
 board_config_update
 
 case "$(board_name)" in
-"snps,axs101")
+snps,axs101)
        ucidef_set_interface_lan "eth0" "dhcp"
        ;;
 esac
index c379d130460c30d1ae75dbfe0da7242aab2f5e57..694bcaecce2e1a2484d1fc8a10247e8e8739ee24 100644 (file)
@@ -10,33 +10,33 @@ board_config_update
 board=$(board_name)
 
 case "$board" in
-"checkpoint,l-50")
+checkpoint,l-50)
        ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 lan5 lan6 lan7 lan8 dmz" "eth0"
        ;;
-"cisco,on100")
+cisco,on100)
        ucidef_set_interface_lan "eth0 eth1"
        ;;
-"cloudengines,pogoe02"|\
-"cloudengines,pogoplugv4"|\
-"globalscale,sheevaplug"|\
-"iom,iconnect-1.1"|\
-"iom,ix2-200"|\
-"raidsonic,ib-nas62x0"|\
-"seagate,blackarmor-nas220"|\
-"seagate,dockstar"|\
-"seagate,goflexhome"|\
-"seagate,goflexnet"|\
-"zyxel,nsa310s")
+cloudengines,pogoe02|\
+cloudengines,pogoplugv4|\
+globalscale,sheevaplug|\
+iom,iconnect-1.1|\
+iom,ix2-200|\
+raidsonic,ib-nas62x0|\
+seagate,blackarmor-nas220|\
+seagate,dockstar|\
+seagate,goflexhome|\
+seagate,goflexnet|\
+zyxel,nsa310s)
        ucidef_set_interface_lan "eth0" "dhcp"
        ;;
-"linksys,e4200-v2"|\
-"linksys,ea3500"|\
-"linksys,ea4500")
+linksys,e4200-v2|\
+linksys,ea3500|\
+linksys,ea4500)
        ucidef_set_interfaces_lan_wan "ethernet1 ethernet2 ethernet3 ethernet4" "internet"
        ucidef_set_interface_macaddr "wan" $( mtd_get_mac_ascii u_env eth1addr )
        ;;
-"zyxel,nsa310b"|\
-"zyxel,nsa325")
+zyxel,nsa310b|\
+zyxel,nsa325)
        ucidef_set_interface_lan "eth0" "dhcp"
        ucidef_set_interface_macaddr "lan" $( mtd_get_mac_ascii uboot_env ethaddr )
        ;;
index 141aac8a6d7a911c6ac9c9af4721886089262bee..c6b741a5ce38d61ded470e540577c8aa6b894c30 100644 (file)
@@ -6,8 +6,8 @@ reorder_layerscape_interfaces() {
 
        board=$(cat /tmp/sysinfo/board_name)
        case "$board" in
-       "traverse,ls1043v" | \
-       "traverse,ls1043s")
+       traverse,ls1043v|\
+       traverse,ls1043s)
 
                # Reorder ethernet interfaces to match the physical order
                ip link set eth2 name fm1-mac3