]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ipq806x: remove trailing whitespaces in base-files
authorChristoph Krapp <achterin@gmail.com>
Thu, 30 Oct 2025 18:23:00 +0000 (19:23 +0100)
committerRobert Marko <robimarko@gmail.com>
Sat, 1 Nov 2025 18:39:18 +0000 (19:39 +0100)
This removes the obsolete trailing whitespaces from all base-files cases
to be in line with other targets.

Signed-off-by: Christoph Krapp <achterin@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20603
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ipq806x/base-files/etc/board.d/01_leds
target/linux/ipq806x/base-files/etc/board.d/02_network
target/linux/ipq806x/base-files/etc/board.d/05_compat-version
target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
target/linux/ipq806x/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
target/linux/ipq806x/base-files/etc/init.d/bootcount
target/linux/ipq806x/base-files/lib/upgrade/platform.sh

index 514778e214b122140c6fdd7e23bbbf24d54d4105..0b16427db730512d3c7f62d9236a087a4e922937 100644 (file)
@@ -80,11 +80,11 @@ nec,wg2600hp3)
        ucidef_set_led_netdev "lan4-port-100" "LAN4-PORT-100" "qca8k-0.0:04:green:lan-2" "lan4" "tx rx link_100"
        ucidef_set_led_netdev "lan4-port-1000" "LAN4-PORT-1000" "qca8k-0.0:04:green:lan-3" "lan4" "tx rx link_1000"
        ;;
-netgear,d7800 |\
-netgear,r7500 |\
-netgear,r7500v2 |\
-netgear,r7800 |\
-netgear,xr450 |\
+netgear,d7800|\
+netgear,r7500|\
+netgear,r7500v2|\
+netgear,r7800|\
+netgear,xr450|\
 netgear,xr500)
        ucidef_set_led_usbport "usb1" "USB 1" "white:usb1" "usb1-port1" "usb2-port1"
        ucidef_set_led_usbport "usb2" "USB 2" "white:usb2" "usb3-port1" "usb4-port1"
index 10c6efbf41d7deff65bc2f810e09c6f0f6da173e..42bea95e97e62a224a9bf6a0b08d6ef06735036c 100644 (file)
@@ -14,25 +14,25 @@ ipq806x_setup_interfaces()
        arris,tr4400-v2)
                ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "eth2"
                ;;
-       askey,rt4230w-rev6 |\
-       asrock,g10 |\
-       nec,wg2600hp |\
-       buffalo,wxr-2533dhp |\
-       compex,wpq864 |\
-       netgear,d7800 |\
-       netgear,r7500 |\
-       netgear,r7500v2 |\
-       qcom,ipq8064-ap148 |\
-       linksys,e8350-v1 |\
-       linksys,ea7500-v1 |\
-       linksys,ea8500 |\
-       nec,wg2600hp3 |\
-       netgear,r7800 |\
-       netgear,xr500 |\
-       netgear,xr450 |\
-       tplink,c2600 |\
-       tplink,vr2600v |\
-       tplink,ad7200 |\
+       askey,rt4230w-rev6|\
+       asrock,g10|\
+       nec,wg2600hp|\
+       buffalo,wxr-2533dhp|\
+       compex,wpq864|\
+       netgear,d7800|\
+       netgear,r7500|\
+       netgear,r7500v2|\
+       qcom,ipq8064-ap148|\
+       linksys,e8350-v1|\
+       linksys,ea7500-v1|\
+       linksys,ea8500|\
+       nec,wg2600hp3|\
+       netgear,r7800|\
+       netgear,xr500|\
+       netgear,xr450|\
+       tplink,c2600|\
+       tplink,vr2600v|\
+       tplink,ad7200|\
        zyxel,nbg6817)
                ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
                ucidef_set_network_device_conduit "lan1" "eth1"
@@ -41,13 +41,13 @@ ipq806x_setup_interfaces()
                ucidef_set_network_device_conduit "lan4" "eth1"
                ucidef_set_network_device_conduit "wan" "eth0"
                ;;
-       asus,onhub |\
+       asus,onhub|\
        tplink,onhub)
                ucidef_set_interfaces_lan_wan "lan1" "wan"
                ucidef_set_network_device_conduit "lan1" "eth1"
                ucidef_set_network_device_conduit "wan" "eth0"
                ;;
-       edgecore,ecw5410 |\
+       edgecore,ecw5410|\
        extreme,ap3935)
                ucidef_set_interfaces_lan_wan "eth1" "eth0"
                ;;
@@ -57,8 +57,8 @@ ipq806x_setup_interfaces()
        qcom,ipq8064-db149)
                ucidef_set_interface_lan "eth1 eth2 eth3 lan1 lan2 lan3 lan4" "wan"
                ;;
-       fortinet,fap-421e |\
-       ignitenet,ss-w2-ac2600 |\
+       fortinet,fap-421e|\
+       ignitenet,ss-w2-ac2600|\
        ubnt,unifi-ac-hd)
                ucidef_set_interface_lan "eth0 eth1"
                ;;
@@ -79,7 +79,7 @@ ipq806x_setup_macs()
        local board="$1"
 
        case "$board" in
-               linksys,e8350-v1 |\
+               linksys,e8350-v1|\
                zyxel,nbg6817)
                        hw_mac_addr=$(mtd_get_mac_ascii 0:appsblenv ethaddr)
                        ucidef_set_interface_macaddr "lan" "$(macaddr_add $hw_mac_addr 2)"
index caf65b96d20cffdfaf52cf88d8dbbeb0f6b205b6..1bcbddb774ae3fe10fb33ef0ad1907e2ee9e0cb7 100644 (file)
@@ -9,33 +9,33 @@
 board_config_update
 
 case "$(board_name)" in
-       arris,tr4400-v2 |\
-       askey,rt4230w-rev6 |\
-       asrock,g10 |\
-       buffalo,wxr-2533dhp |\
-       compex,wpq864 |\
-       fortinet,fap-421e |\
-       nec,wg2600hp |\
-       nec,wg2600hp3 |\
-       netgear,d7800 |\
-       netgear,r7500 |\
-       netgear,r7500v2 |\
-       netgear,r7800 |\
-       netgear,xr450 |\
-       netgear,xr500 |\
-       nokia,ac400i |\
-       qcom,ipq8064-ap148 |\
-       qcom,ipq8064-ap161 |\
-       qcom,ipq8064-db149 |\
-       tplink,ad7200 |\
-       tplink,c2600 |\
-       tplink,vr2600v |\
-       zyxel,nbg6817 |\
-       asus,onhub |\
+       arris,tr4400-v2|\
+       askey,rt4230w-rev6|\
+       asrock,g10|\
+       buffalo,wxr-2533dhp|\
+       compex,wpq864|\
+       fortinet,fap-421e|\
+       nec,wg2600hp|\
+       nec,wg2600hp3|\
+       netgear,d7800|\
+       netgear,r7500|\
+       netgear,r7500v2|\
+       netgear,r7800|\
+       netgear,xr450|\
+       netgear,xr500|\
+       nokia,ac400i|\
+       qcom,ipq8064-ap148|\
+       qcom,ipq8064-ap161|\
+       qcom,ipq8064-db149|\
+       tplink,ad7200|\
+       tplink,c2600|\
+       tplink,vr2600v|\
+       zyxel,nbg6817|\
+       asus,onhub|\
        tplink,onhub)
                ucidef_set_compat_version "1.1"
                ;;
-       linksys,ea7500-v1 |\
+       linksys,ea7500-v1|\
        linksys,ea8500)
                ucidef_set_compat_version "2.1"
                ;;
index 36f07307c304dc0ef6306028ab5d4c10b5078f31..add17e20826f723b7cd91db64df4b52d8bf139be 100644 (file)
@@ -28,7 +28,7 @@ base64_extract() {
 case "$FIRMWARE" in
 "ath10k/cal-pci-0000:01:00.0.bin")
        case "$board" in
-       asus,onhub |\
+       asus,onhub|\
        tplink,onhub)
                base64_extract /sys/firmware/vpd/ro/wifi_base64_calibration0
                ;;
@@ -59,7 +59,7 @@ case "$FIRMWARE" in
        ;;
 "ath10k/cal-pci-0001:01:00.0.bin")
        case "$board" in
-       asus,onhub |\
+       asus,onhub|\
        tplink,onhub)
                base64_extract /sys/firmware/vpd/ro/wifi_base64_calibration1
                ;;
@@ -73,7 +73,7 @@ case "$FIRMWARE" in
        edgecore,ecw5410)
                caldata_extract "0:art" 0x1000 0x2f20
                ;;
-       meraki,mr42 |\
+       meraki,mr42|\
        meraki,mr52)
                CI_UBIPART=art
                caldata_extract_ubi "ART" 0x5000 0x2f20
@@ -90,7 +90,7 @@ case "$FIRMWARE" in
        ;;
 "ath10k/cal-pci-0002:01:00.0.bin")
        case "$board" in
-       asus,onhub |\
+       asus,onhub|\
        tplink,onhub)
                base64_extract /sys/firmware/vpd/ro/wifi_base64_calibration2
                ;;
index 52cb55ab50e45e1cf8c4aa3ea251c15483bf1d56..637439457ce1ff9449ec05e21e71596e5e07437a 100644 (file)
@@ -17,7 +17,7 @@ case "$board" in
                [ "$PHYNBR" = "0" ] && echo $(mtd_get_mac_ascii CFG1 RADIOADDR0) > /sys${DEVPATH}/macaddress
                [ "$PHYNBR" = "1" ] && echo $(mtd_get_mac_ascii CFG1 RADIOADDR1) > /sys${DEVPATH}/macaddress
                ;;
-       linksys,ea7500-v1 |\
+       linksys,ea7500-v1|\
        linksys,ea8500)
                macaddr_add $(mtd_get_mac_ascii devinfo hw_mac_addr) $(($PHYNBR + 1)) > /sys${DEVPATH}/macaddress
                ;;
index e17dbf4a77fa376bc0982453b06042d5e7b1b8d0..669b815e3972d1428873276c759c54d47e9481f6 100755 (executable)
@@ -9,14 +9,14 @@ boot() {
        asrock,g10)
                asrock_bootconfig_mangle "bootcheck" && reboot
                ;;
-       edgecore,ecw5410 |\
+       edgecore,ecw5410|\
        ignitenet,ss-w2-ac2600)
                fw_setenv bootcount 0
                ;;
        extreme,ap3935)
                fw_setenv WATCHDOG_COUNT 0x00000000
                ;;
-       linksys,ea7500-v1 |\
+       linksys,ea7500-v1|\
        linksys,ea8500)
                mtd resetbc s_env || true
                ;;
index a6fe5c10557ba9c3332dd234318977a91a890153..43df4b6817acd8f7a6a9d285ec8926d41d1f7bed 100644 (file)
@@ -10,19 +10,19 @@ platform_check_image() {
 
 platform_do_upgrade() {
        case "$(board_name)" in
-       arris,tr4400-v2 |\
-       askey,rt4230w-rev6 |\
+       arris,tr4400-v2|\
+       askey,rt4230w-rev6|\
        compex,wpq864|\
        fortinet,fap-421e|\
        linksys,e8350-v1|\
-       netgear,d7800 |\
-       netgear,r7500 |\
-       netgear,r7500v2 |\
-       netgear,r7800 |\
-       netgear,xr450 |\
-       netgear,xr500 |\
-       nokia,ac400i |\
-       qcom,ipq8064-ap148 |\
+       netgear,d7800|\
+       netgear,r7500|\
+       netgear,r7500v2|\
+       netgear,r7800|\
+       netgear,xr450|\
+       netgear,xr500|\
+       nokia,ac400i|\
+       qcom,ipq8064-ap148|\
        qcom,ipq8064-ap161)
                nand_do_upgrade "$1"
                ;;
@@ -35,7 +35,7 @@ platform_do_upgrade() {
                CI_ROOTPART="ubi_rootfs"
                nand_do_upgrade "$1"
                ;;
-       edgecore,ecw5410 |\
+       edgecore,ecw5410|\
        ignitenet,ss-w2-ac2600)
                part="$(awk -F 'ubi.mtd=' '{printf $2}' /proc/cmdline | sed -e 's/ .*$//')"
                if [ "$part" = "rootfs1" ]; then
@@ -52,22 +52,22 @@ platform_do_upgrade() {
                CI_KERNPART="PriImg"
                nand_do_upgrade "$1"
                ;;
-       linksys,ea7500-v1 |\
+       linksys,ea7500-v1|\
        linksys,ea8500)
                platform_do_upgrade_linksys "$1"
                ;;
-       meraki,mr42 |\
+       meraki,mr42|\
        meraki,mr52)
                CI_KERNPART="bootkernel2"
                nand_do_upgrade "$1"
                ;;
-       tplink,ad7200 |\
+       tplink,ad7200|\
        tplink,c2600)
                PART_NAME="os-image:rootfs"
                MTD_CONFIG_ARGS="-s 0x200000"
                default_do_upgrade "$1"
                ;;
-       asus,onhub |\
+       asus,onhub|\
        tplink,onhub)
                export_bootdevice
                export_partdevice CI_ROOTDEV 0
@@ -91,7 +91,7 @@ platform_do_upgrade() {
 
 platform_copy_config() {
        case "$(board_name)" in
-       asus,onhub |\
+       asus,onhub|\
        tplink,onhub)
                emmc_copy_config
                ;;