aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-07-03 23:22:39 +0200
committerDaniel Golle <daniel@makrotopia.org>2019-07-10 17:36:29 +0200
commite8d2d97498c4413cf61b4b2e44b29cbe790e8d4b (patch)
tree0b3a082a7b7b7874231cdabce1ada27b83a3a796 /target
parent3b0264eddbc94f43a015a965b9eb3e12cfce0655 (diff)
downloadupstream-e8d2d97498c4413cf61b4b2e44b29cbe790e8d4b.tar.gz
upstream-e8d2d97498c4413cf61b4b2e44b29cbe790e8d4b.tar.bz2
upstream-e8d2d97498c4413cf61b4b2e44b29cbe790e8d4b.zip
ramips: Remove base-files/lib/ramips.sh
Having converted the target to use device compatible, ramips.sh is obsolete now. The only remaining entry for the mt7688 evaluation board seems to be orphaned. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ramips/base-files/lib/preinit/01_preinit_do_ramips.sh9
-rw-r--r--target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips2
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh25
3 files changed, 0 insertions, 36 deletions
diff --git a/target/linux/ramips/base-files/lib/preinit/01_preinit_do_ramips.sh b/target/linux/ramips/base-files/lib/preinit/01_preinit_do_ramips.sh
deleted file mode 100644
index 31ef5f8146..0000000000
--- a/target/linux/ramips/base-files/lib/preinit/01_preinit_do_ramips.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-do_ramips() {
- . /lib/ramips.sh
-
- ramips_board_detect
-}
-
-boot_hook_add preinit_main do_ramips
diff --git a/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips b/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
index 5048dacb4f..a395956d04 100644
--- a/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
+++ b/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
@@ -3,8 +3,6 @@
# Copyright (C) 2013 OpenWrt.org
#
-. /lib/ramips.sh
-
ramips_set_preinit_iface() {
RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350|MT7628|MT7688|MT7620|MT7621)"`
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
deleted file mode 100755
index 53fc7c30db..0000000000
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-#
-# Copyright (C) 2010-2013 OpenWrt.org
-#
-
-ramips_board_detect() {
- local machine
- local name
-
- machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo)
-
- case "$machine" in
- *"MT7688 evaluation"*)
- name="mt7688"
- ;;
- esac
-
- # use generic board detect if no name is set
- [ -z "$name" ] && return
-
- [ -e "/tmp/sysinfo/" ] || mkdir -p "/tmp/sysinfo/"
-
- echo "$name" > /tmp/sysinfo/board_name
- echo "$machine" > /tmp/sysinfo/model
-}