From 2450985de9b4e47c77b57c1fd9469d43d1c43636 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 24 Mar 2015 10:06:14 +0000 Subject: avr32: remove target It depends on obsolete compilers and only works on one device (an evaluation board). Signed-off-by: Felix Fietkau SVN-Revision: 44956 --- target/linux/avr32/base-files/etc/diag.sh | 26 -------------------- .../avr32/base-files/etc/uci-defaults/02_network | 17 ------------- .../linux/avr32/base-files/lib/upgrade/platform.sh | 28 ---------------------- 3 files changed, 71 deletions(-) delete mode 100644 target/linux/avr32/base-files/etc/diag.sh delete mode 100644 target/linux/avr32/base-files/etc/uci-defaults/02_network delete mode 100755 target/linux/avr32/base-files/lib/upgrade/platform.sh (limited to 'target/linux/avr32/base-files') diff --git a/target/linux/avr32/base-files/etc/diag.sh b/target/linux/avr32/base-files/etc/diag.sh deleted file mode 100644 index 38cd189681..0000000000 --- a/target/linux/avr32/base-files/etc/diag.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -# Copyright (C) 2013 OpenWrt.org - -. /lib/functions/leds.sh - -set_state() { - status_led="sys" - - case "$1" in - preinit) - status_led_blink_preinit - ;; - - failsafe) - status_led_blink_failsafe - ;; - - preinit_regular) - status_led_blink_preinit_regular - ;; - - done) - status_led_on - ;; - esac -} diff --git a/target/linux/avr32/base-files/etc/uci-defaults/02_network b/target/linux/avr32/base-files/etc/uci-defaults/02_network deleted file mode 100644 index 3676146eb5..0000000000 --- a/target/linux/avr32/base-files/etc/uci-defaults/02_network +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2013 OpenWrt.org -# - -[ -e /etc/config/network ] && exit 0 - -touch /etc/config/network - -. /lib/functions/uci-defaults.sh - -ucidef_set_interface_loopback -ucidef_set_interfaces_lan_wan "eth1" "eth0" - -uci commit network - -exit 0 diff --git a/target/linux/avr32/base-files/lib/upgrade/platform.sh b/target/linux/avr32/base-files/lib/upgrade/platform.sh deleted file mode 100755 index 403a851c09..0000000000 --- a/target/linux/avr32/base-files/lib/upgrade/platform.sh +++ /dev/null @@ -1,28 +0,0 @@ -# -# Copyright (C) 2013 OpenWrt.org -# - -PART_NAME=firmware - -platform_check_image() { - local magic="$(get_magic_long "$1")" - - [ "$#" -gt 1 ] && return 1 - - [ "$magic" != "27051956" ] && { - echo "Invalid image type." - return 1 - } - - return 0 -} - -disable_watchdog() { - killall watchdog - ( ps | grep -v 'grep' | grep '/dev/watchdog' ) && { - echo 'Could not disable watchdog' - return 1 - } -} - -append sysupgrade_pre_upgrade disable_watchdog -- cgit v1.2.3