aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120/base-files
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/adm5120/base-files')
-rwxr-xr-xtarget/linux/adm5120/base-files/etc/board.d/01_leds17
-rw-r--r--target/linux/adm5120/base-files/etc/config/network39
-rw-r--r--target/linux/adm5120/base-files/etc/diag.sh22
-rw-r--r--target/linux/adm5120/base-files/etc/inittab5
-rwxr-xr-xtarget/linux/adm5120/base-files/lib/adm5120.sh53
-rw-r--r--target/linux/adm5120/base-files/lib/preinit/01_preinit_do_adm5120.sh7
-rw-r--r--target/linux/adm5120/base-files/lib/preinit/05_set_preinit_iface_adm51209
-rw-r--r--target/linux/adm5120/base-files/lib/upgrade/platform.sh35
8 files changed, 0 insertions, 187 deletions
diff --git a/target/linux/adm5120/base-files/etc/board.d/01_leds b/target/linux/adm5120/base-files/etc/board.d/01_leds
deleted file mode 100755
index f5cd778ede..0000000000
--- a/target/linux/adm5120/base-files/etc/board.d/01_leds
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-. /lib/functions/uci-defaults.sh
-
-board_config_update
-
-ucidef_set_led_portstate "lan1" "LAN1" "lan1" "link_act"
-ucidef_set_led_portstate "lan2" "LAN2" "lan2" "link_act"
-ucidef_set_led_portstate "lan3" "LAN3" "lan3" "link_act"
-ucidef_set_led_portstate "lan4" "LAN4" "lan4" "link_act"
-ucidef_set_led_portstate "wan" "WAN" "wan" "link_act"
-
-ucidef_set_led_netdev "wlan" "WLAN" "wlan" "wlan0"
-
-board_config_flush
-
-exit 0
diff --git a/target/linux/adm5120/base-files/etc/config/network b/target/linux/adm5120/base-files/etc/config/network
deleted file mode 100644
index 87782f4782..0000000000
--- a/target/linux/adm5120/base-files/etc/config/network
+++ /dev/null
@@ -1,39 +0,0 @@
-#### VLAN configuration
-config switch
- option eth0 "0 1 2 3"
- option eth1 "4"
-
-
-#### Loopback configuration
-config interface loopback
- option ifname "lo"
- option proto static
- option ipaddr 127.0.0.1
- option netmask 255.0.0.0
-
-
-#### LAN configuration
-config interface lan
- option type bridge
- option ifname "eth0"
- option proto static
- option ipaddr 192.168.1.1
- option netmask 255.255.255.0
- option ip6assign 60
-
-
-#### WAN configuration
-config interface wan
- option ifname "eth1"
- option proto dhcp
-
-
-#### WAN6 configuration
-config interface wan6
- option ifname "eth1"
- option proto dhcpv6
-
-
-#### Network global configuration
-config globals globals
- option ula_prefix auto
diff --git a/target/linux/adm5120/base-files/etc/diag.sh b/target/linux/adm5120/base-files/etc/diag.sh
deleted file mode 100644
index 08952bdaaa..0000000000
--- a/target/linux/adm5120/base-files/etc/diag.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-# Copyright (C) 2007-2013 OpenWrt.org
-
-. /lib/functions/leds.sh
-. /lib/adm5120.sh
-
-set_state() {
- 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/adm5120/base-files/etc/inittab b/target/linux/adm5120/base-files/etc/inittab
deleted file mode 100644
index d81d5d943b..0000000000
--- a/target/linux/adm5120/base-files/etc/inittab
+++ /dev/null
@@ -1,5 +0,0 @@
-::sysinit:/etc/init.d/rcS S boot
-::shutdown:/etc/init.d/rcS K shutdown
-tts/0::askfirst:/usr/libexec/login.sh
-ttyAM0::askfirst:/usr/libexec/login.sh
-tty1::askfirst:/usr/libexec/login.sh
diff --git a/target/linux/adm5120/base-files/lib/adm5120.sh b/target/linux/adm5120/base-files/lib/adm5120.sh
deleted file mode 100755
index 496fc06f37..0000000000
--- a/target/linux/adm5120/base-files/lib/adm5120.sh
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/sh
-#
-# Copyright (C) 2007 OpenWrt.org
-#
-#
-
-board_name=""
-status_led=""
-sys_mtd_part=""
-
-adm5120_detect() {
- board_name=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo)
-
- case "$board_name" in
- "Cellvision"*)
- status_led="status"
- sys_mtd_part="firmware"
- ;;
- "Compex"*)
- status_led="diag"
- case "$board_name" in
- *-WRT)
- sys_mtd_part="trx"
- ;;
- *)
- sys_mtd_part="partition1"
- ;;
- esac
- ;;
- "Edimax"*)
- status_led="power"
- sys_mtd_part="firmware"
- ;;
- "Infineon"*)
- sys_mtd_part="firmware"
- ;;
- "Mikrotik"*)
- status_led="power"
- ;;
- "ZyXEL"*)
- status_led="power"
- sys_mtd_part="trx"
- ;;
- "EB-214A"*)
- status_led="power"
- sys_mtd_part="firmware"
- ;;
- *)
- ;;
- esac
-}
-
-adm5120_detect
diff --git a/target/linux/adm5120/base-files/lib/preinit/01_preinit_do_adm5120.sh b/target/linux/adm5120/base-files/lib/preinit/01_preinit_do_adm5120.sh
deleted file mode 100644
index 4fca1e71b2..0000000000
--- a/target/linux/adm5120/base-files/lib/preinit/01_preinit_do_adm5120.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-do_adm5120() {
- . /lib/adm5120.sh
-}
-
-boot_hook_add preinit_main do_adm5120
diff --git a/target/linux/adm5120/base-files/lib/preinit/05_set_preinit_iface_adm5120 b/target/linux/adm5120/base-files/lib/preinit/05_set_preinit_iface_adm5120
deleted file mode 100644
index ac2a7cbb66..0000000000
--- a/target/linux/adm5120/base-files/lib/preinit/05_set_preinit_iface_adm5120
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-set_preinit_ifname() {
- ifname=eth0
-}
-
-boot_hook_add preinit_main set_preinit_ifname
-
-
diff --git a/target/linux/adm5120/base-files/lib/upgrade/platform.sh b/target/linux/adm5120/base-files/lib/upgrade/platform.sh
deleted file mode 100644
index b874a5e992..0000000000
--- a/target/linux/adm5120/base-files/lib/upgrade/platform.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#
-# Copyright (C) 2009-2010 OpenWrt.org
-#
-
-. /lib/adm5120.sh
-
-PART_NAME="firmware"
-RAMFS_COPY_DATA=/lib/adm5120.sh
-
-platform_check_image() {
- local magic="$(get_magic_word "$1")"
-
- [ "$#" -gt 1 ] && return 1
-
- case "$board_name" in
- "ZyXEL"*|"Compex WP54 family")
- # .trx files
- [ "$magic" != "4844" ] && {
- echo "Invalid image type."
- return 1
- }
- return 0
- ;;
- *)
- ;;
- esac
-
- echo "Sysupgrade is not yet supported on $board_name."
- return 1
-}
-
-platform_do_upgrade() {
- PART_NAME="$sys_mtd_part"
- default_do_upgrade "$ARGV"
-}