aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/imx6/base-files/lib/imx6.sh
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-06-19 14:13:34 +0000
committerJohn Crispin <john@openwrt.org>2014-06-19 14:13:34 +0000
commit1a60486acbc0e1e1f87ee4806c53b5609fcfdd66 (patch)
tree0d860bcfccc8a252c6c4d7fdbe579cd7382c3e4b /target/linux/imx6/base-files/lib/imx6.sh
parente0d57509add9bfb5f99839934229023e10156679 (diff)
downloadupstream-1a60486acbc0e1e1f87ee4806c53b5609fcfdd66.tar.gz
upstream-1a60486acbc0e1e1f87ee4806c53b5609fcfdd66.tar.bz2
upstream-1a60486acbc0e1e1f87ee4806c53b5609fcfdd66.zip
imx6: the script populating /tmp/sysinfo/ was in the wrong path
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41276
Diffstat (limited to 'target/linux/imx6/base-files/lib/imx6.sh')
-rwxr-xr-xtarget/linux/imx6/base-files/lib/imx6.sh63
1 files changed, 0 insertions, 63 deletions
diff --git a/target/linux/imx6/base-files/lib/imx6.sh b/target/linux/imx6/base-files/lib/imx6.sh
deleted file mode 100755
index 0318fb4485..0000000000
--- a/target/linux/imx6/base-files/lib/imx6.sh
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/sh
-#
-# Copyright (C) 2010-2013 OpenWrt.org
-#
-
-IMX6_BOARD_NAME=
-IMX6_MODEL=
-
-imx6_board_detect() {
- local machine
- local name
-
- machine=$(cat /proc/device-tree/model)
-
- case "$machine" in
- "Gateworks Ventana i.MX6 DualLite/Solo GW51XX" |\
- "Gateworks Ventana i.MX6 Dual/Quad GW51XX")
- name="gw51xx"
- ;;
-
- "Gateworks Ventana i.MX6 DualLite/Solo GW52XX" |\
- "Gateworks Ventana i.MX6 Dual/Quad GW52XX")
- name="gw52xx"
- ;;
-
- "Gateworks Ventana i.MX6 DualLite/Solo GW53XX" |\
- "Gateworks Ventana i.MX6 Dual/Quad GW53XX")
- name="gw53xx"
- ;;
-
- "Gateworks Ventana i.MX6 DualLite/Solo GW54XX" |\
- "Gateworks Ventana i.MX6 Dual/Quad GW54XX" |\
- "Gateworks Ventana GW5400-A")
- name="gw54xx"
- ;;
-
- "Wandboard i.MX6 Dual Lite Board")
- name="wandboard"
- ;;
-
- *)
- name="generic"
- ;;
- esac
-
- [ -z "$IMX6_BOARD_NAME" ] && IMX6_BOARD_NAME="$name"
- [ -z "$IMX6_MODEL" ] && IMX6_MODEL="$machine"
-
- [ -e "/tmp/sysinfo/" ] || mkdir -p "/tmp/sysinfo/"
-
- echo "$IMX6_BOARD_NAME" > /tmp/sysinfo/board_name
- echo "$IMX6_MODEL" > /tmp/sysinfo/model
-}
-
-imx6_board_name() {
- local name
-
- [ -f /tmp/sysinfo/board_name ] || imx6_board_detect
- [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
- [ -z "$name" ] && name="unknown"
-
- echo "$name"
-}