aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/base-files/lib
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-07-17 12:48:02 +0000
committerJohn Crispin <john@openwrt.org>2015-07-17 12:48:02 +0000
commit623da91e4d27f4fde9839617d70addacc8ca40da (patch)
tree6762ebf77e83e04076f290a956c4d9fe3b18001e /target/linux/brcm2708/base-files/lib
parent8ef50ec40b825a2937eb90570eccb91a2ad79b9d (diff)
downloadupstream-623da91e4d27f4fde9839617d70addacc8ca40da.tar.gz
upstream-623da91e4d27f4fde9839617d70addacc8ca40da.tar.bz2
upstream-623da91e4d27f4fde9839617d70addacc8ca40da.zip
brcm2708: remove unneeded base-files
Device tree exports board name/model and device LEDs. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> SVN-Revision: 46397
Diffstat (limited to 'target/linux/brcm2708/base-files/lib')
-rwxr-xr-xtarget/linux/brcm2708/base-files/lib/brcm2708.sh36
-rw-r--r--target/linux/brcm2708/base-files/lib/preinit/03_preinit_do_brcm2708.sh9
2 files changed, 0 insertions, 45 deletions
diff --git a/target/linux/brcm2708/base-files/lib/brcm2708.sh b/target/linux/brcm2708/base-files/lib/brcm2708.sh
deleted file mode 100755
index 76870c6a39..0000000000
--- a/target/linux/brcm2708/base-files/lib/brcm2708.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh
-#
-# Copyright (C) 2015 OpenWrt.org
-#
-
-brcm2708_board_detect() {
- local machine
- local name
-
- machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /Hardware/ {print $2}' /proc/cpuinfo)
-
- case "$machine" in
- BCM2708)
- name="Raspberry Pi"
- ;;
- BCM2709)
- name="Raspberry Pi 2"
- ;;
- esac
-
- [ -z "$name" ] && name="unknown"
-
- [ -e "/tmp/sysinfo/" ] || mkdir -p "/tmp/sysinfo/"
-
- echo "$machine" > /tmp/sysinfo/board_name
- echo "$name" > /tmp/sysinfo/model
-}
-
-brcm2708_board_name() {
- local name
-
- [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
- [ -z "$name" ] && name="unknown"
-
- echo "$name"
-}
diff --git a/target/linux/brcm2708/base-files/lib/preinit/03_preinit_do_brcm2708.sh b/target/linux/brcm2708/base-files/lib/preinit/03_preinit_do_brcm2708.sh
deleted file mode 100644
index e3cf56d317..0000000000
--- a/target/linux/brcm2708/base-files/lib/preinit/03_preinit_do_brcm2708.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-do_brcm2708() {
- . /lib/brcm2708.sh
-
- brcm2708_board_detect
-}
-
-boot_hook_add preinit_main do_brcm2708