diff options
author | John Crispin <blogic@openwrt.org> | 2015-07-17 12:48:02 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-07-17 12:48:02 +0000 |
commit | 7dce405a74a5a25b889e1becff645ec827a69213 (patch) | |
tree | 10f71e64b20e623b32acdf1106b7d5fb0e6a3d3b /target/linux/brcm2708 | |
parent | 0fd73c82ed5afe0a7e0214a15542f6d350da558f (diff) | |
download | master-187ad058-7dce405a74a5a25b889e1becff645ec827a69213.tar.gz master-187ad058-7dce405a74a5a25b889e1becff645ec827a69213.tar.bz2 master-187ad058-7dce405a74a5a25b889e1becff645ec827a69213.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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46397 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm2708')
3 files changed, 0 insertions, 56 deletions
diff --git a/target/linux/brcm2708/base-files/etc/uci-defaults/01_leds b/target/linux/brcm2708/base-files/etc/uci-defaults/01_leds deleted file mode 100644 index ad52c689e9..0000000000 --- a/target/linux/brcm2708/base-files/etc/uci-defaults/01_leds +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2015 OpenWrt.org -# - -. /lib/functions/uci-defaults.sh - -ucidef_set_led_mmc "mmc" "MMC" "led0" "mmc0" -ucidef_commit_leds - -exit 0 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 |