diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-08-07 15:25:12 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-08-30 22:18:35 +0200 |
commit | 4e4ee4649553ab536225060a27fc320bf54e458c (patch) | |
tree | 711fbf5485f94baec8b708edba00c7250b923872 /target/linux/ar71xx/base-files/etc/uci-defaults | |
parent | 47b2ee2d9a9a1790f9bf8a528640c333af39e4ba (diff) | |
download | upstream-4e4ee4649553ab536225060a27fc320bf54e458c.tar.gz upstream-4e4ee4649553ab536225060a27fc320bf54e458c.tar.bz2 upstream-4e4ee4649553ab536225060a27fc320bf54e458c.zip |
ar71xx: drop target
This target has been mostly replaced by ath79 and won't be included
in the upcoming release anymore. Finally put it to rest.
This also removes all references in packages, tools, etc. as well as
the uboot-ar71xx and vsc73x5-ucode packages.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ar71xx/base-files/etc/uci-defaults')
5 files changed, 0 insertions, 250 deletions
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration b/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration deleted file mode 100644 index 0388fb6dc9..0000000000 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration +++ /dev/null @@ -1,108 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2013 OpenWrt.org -# - -SWITCH_NAME_CHANGED= - -. /lib/functions.sh - -do_change_switch_name() { - local config="$1" - local option=$2 - local oldname=$3 - local newname=$4 - local val - - config_get val "$config" $option - [ "$val" != "$oldname" ] && return 0 - - uci_set network "$config" $option $newname - SWITCH_NAME_CHANGED=1 - - return 0 -} - -migrate_switch_name() { - local oldname=$1 - local newname=$2 - - config_load network - - logger -t migrate-switchX "Updating switch names in network configuration" - - config_foreach do_change_switch_name switch name $oldname $newname - config_foreach do_change_switch_name switch_vlan device $oldname $newname - - [ "$SWITCH_NAME_CHANGED" = "1" ] && { - logger -t migrate-switchX "Switch names updated, saving network configuration" - uci commit network - } -} - -board=$(board_name) - -case "$board" in -airrouter|\ -ap121|\ -ap121-mini|\ -ap96|\ -dir-600-a1|\ -dir-615-c1|\ -dir-615-e1|\ -dir-615-e4|\ -dir-825-c1|\ -ebr-2310-c1|\ -ew-dorin|\ -ew-dorin-router|\ -ja76pf|\ -rb-750|\ -rb-751|\ -tew-632brp|\ -tew-712br|\ -tl-mr3220|\ -tl-mr3220-v2 |\ -tl-mr3420|\ -tl-wdr4300|\ -tl-wr741nd|\ -tl-wr741nd-v4|\ -tl-wr841n-v7|\ -tl-wr1041n-v2|\ -whr-g301n|\ -whr-hp-g300n|\ -whr-hp-gn|\ -wrt160nl|\ -wzr-hp-ag300h|\ -wzr-hp-g300nh2|\ -wzr-hp-g450h|\ -z1) - migrate_switch_name "eth0" "switch0" - ;; - -el-m150|\ -rb-450) - migrate_switch_name "eth1" "switch0" - ;; - -db120|\ -rb-2011il|\ -rb-2011ils|\ -rb-2011l|\ -rb-2011uas-2hnd) - migrate_switch_name "eth0" "switch0" - migrate_switch_name "eth1" "switch1" - ;; - -dir-825-b1|\ -nbg460n_550n_550nh|\ -tew-673gru) - migrate_switch_name "rtl8366s" "switch0" - ;; - -tl-wr1043nd) - migrate_switch_name "rtl8366rb" "switch0" - ;; - -esac - -exit 0 diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-vlan-migration b/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-vlan-migration deleted file mode 100644 index 259d240610..0000000000 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-vlan-migration +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2010 OpenWrt.org -# - -dev="$(uci -q get network.@switch_vlan[0].device)" -vlan="$(uci -q get network.@switch_vlan[0].vlan)" - -if [ "$dev" = "rtl8366s" ] && [ "$vlan" = 0 ]; then - logger -t vlan-migration "VLAN 0 is invalid for RTL8366s, changing to 1" - uci set network.@switch_vlan[0].vlan=1 - uci commit network -fi diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration b/target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration deleted file mode 100644 index c244b3b460..0000000000 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration +++ /dev/null @@ -1,84 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2013 OpenWrt.org -# - -LED_OPTIONS_CHANGED=0 - -. /lib/functions.sh - -do_led_update_sysfs() -{ - local cfg=$1; shift - local tuples="$@" - local sysfs - local name - - config_get sysfs $cfg sysfs - config_get name $cfg name - - [ -z "$sysfs" ] && return - - for tuple in $tuples; do - local old=${tuple%=*} - local new=${tuple#*=} - local new_sysfs - - new_sysfs=$(echo ${sysfs} | sed "s/${old}/${new}/") - - [ "$new_sysfs" = "$sysfs" ] && continue - - uci set system.${cfg}.sysfs="${new_sysfs}" - LED_OPTIONS_CHANGED=1 - - logger -t led-migration "sysfs option of LED \"${name}\" updated to ${new_sysfs}" - done; -} - -migrate_leds() -{ - config_load system - config_foreach do_led_update_sysfs led "$@" -} - -board=$(board_name) - -case "$board" in -archer-c7) - migrate_leds ":blue:=:green:" - ;; -dhp-1565-a1|\ -dir-825-c1|\ -dir-835-a1) - migrate_leds ":orange:=:amber:" ":wifi_bgn=:wlan2g" - ;; -dr344) - migrate_leds ":red:=:green:" ":yellow:=:green:" - ;; -gl-ar150) - migrate_leds "gl-ar150:wlan=gl-ar150:orange:wlan" "gl-ar150:lan=gl-ar150:green:lan" "gl-ar150:wan=gl-ar150:green:wan" - ;; -oolite-v1) - migrate_leds "oolite:=${board}" - ;; -wndap360|\ -wndr3700|\ -wnr2000|\ -wnr2200) - migrate_leds "${board}:=netgear:" - ;; -wndr3700v4|\ -wndr4300) - migrate_leds ":orange:=:amber:" - ;; -wnr1000-v2) - migrate_leds "wnr1000v2:=netgear:" - ;; -wnr612-v2) - migrate_leds "wnr612v2:=netgear:" - ;; -esac - -[ "$LED_OPTIONS_CHANGED" = "1" ] && uci commit system - -exit 0 diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/09_fix-checksum b/target/linux/ar71xx/base-files/etc/uci-defaults/09_fix-checksum deleted file mode 100644 index 2d1afb11cb..0000000000 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/09_fix-checksum +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2010 OpenWrt.org -# - -. /lib/functions.sh - -board=$(board_name) - -fixtrx() { - mtd -o 32 fixtrx firmware -} - -fixwrgg() { - local kernel_size=$(sed -n 's/mtd[0-9]*: \([0-9a-f]*\).*"kernel".*/\1/p' /proc/mtd) - - [ "$kernel_size" ] && mtd -c 0x$kernel_size fixwrgg firmware -} - -case "$board" in -mynet-rext |\ -wrt160nl) - fixtrx - ;; -dap-2695-a1) - fixwrgg - ;; -esac diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/09_fix-seama-header b/target/linux/ar71xx/base-files/etc/uci-defaults/09_fix-seama-header deleted file mode 100644 index b3857ef07f..0000000000 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/09_fix-seama-header +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -. /lib/functions.sh - -fix_seama_header() { - local kernel_size=$(sed -n 's/mtd[0-9]*: \([0-9a-f]*\).*"kernel".*/\1/p' /proc/mtd) - - [ "$kernel_size" ] && mtd -c 0x$kernel_size fixseama firmware -} - -board=$(board_name) - -case "$board" in -dir-869-a1) - fix_seama_header - ;; -esac |