diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-03-17 17:02:55 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-03-22 11:43:22 +0100 |
commit | ca44b9a0d40e066ca6fa7125022125d7a33f5725 (patch) | |
tree | 1fb4cf287b15a70984d14d2822b26e078383ba18 /target/linux/pistachio/base-files/lib/pistachio.sh | |
parent | c0e8108b706a3b2f68759aeea63f80c7656417fd (diff) | |
download | mtk-20170518-ca44b9a0d40e066ca6fa7125022125d7a33f5725.zip mtk-20170518-ca44b9a0d40e066ca6fa7125022125d7a33f5725.tar.gz mtk-20170518-ca44b9a0d40e066ca6fa7125022125d7a33f5725.tar.bz2 |
pistachio: remove custom board detection override
Use device tree based model string
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/pistachio/base-files/lib/pistachio.sh')
-rwxr-xr-x | target/linux/pistachio/base-files/lib/pistachio.sh | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/target/linux/pistachio/base-files/lib/pistachio.sh b/target/linux/pistachio/base-files/lib/pistachio.sh deleted file mode 100755 index 9390a4c..0000000 --- a/target/linux/pistachio/base-files/lib/pistachio.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2017 OpenWrt.org -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# - -PISTACHIO_BOARD_NAME= -PISTACHIO_MODEL= - -pistachio_board_detect() { - local machine - local name - - machine=$(cat /proc/device-tree/model) - - case "$machine" in - "IMG Marduk (Creator Ci40)") - name="marduk" - ;; - *) - name="generic" - ;; - esac - - [ -z "$PISTACHIO_BOARD_NAME" ] && PISTACHIO_BOARD_NAME="$name" - [ -z "$PISTACHIO_MODEL" ] && PISTACHIO_MODEL="$machine" - - [ -e "/tmp/sysinfo/" ] || mkdir -p "/tmp/sysinfo/" - - echo "$PISTACHIO_BOARD_NAME" > /tmp/sysinfo/board_name - echo "$PISTACHIO_MODEL" > /tmp/sysinfo/model -} |