summaryrefslogtreecommitdiff
path: root/target/linux/au1000
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-12-11 22:27:56 +0000
committerJohn Crispin <john@openwrt.org>2014-12-11 22:27:56 +0000
commit21349229f7dfdf956156d32c7dc695c7f12826e0 (patch)
treeb017de9ad07bb5eb73a9741c51be113b1ff4e313 /target/linux/au1000
parentad35bcc41e54a3444c3901eec86f255d3841b941 (diff)
downloadmtk-20170518-21349229f7dfdf956156d32c7dc695c7f12826e0.zip
mtk-20170518-21349229f7dfdf956156d32c7dc695c7f12826e0.tar.gz
mtk-20170518-21349229f7dfdf956156d32c7dc695c7f12826e0.tar.bz2
au1000: revert 43626 due to syntax errors
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 43641
Diffstat (limited to 'target/linux/au1000')
-rwxr-xr-xtarget/linux/au1000/base-files/etc/uci-defaults/02_network17
-rw-r--r--target/linux/au1000/base-files/lib/au1000.sh59
2 files changed, 0 insertions, 76 deletions
diff --git a/target/linux/au1000/base-files/etc/uci-defaults/02_network b/target/linux/au1000/base-files/etc/uci-defaults/02_network
deleted file mode 100755
index 80bfb73..0000000
--- a/target/linux/au1000/base-files/etc/uci-defaults/02_network
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-. /lib/au1000.sh
-. /lib/functions/system.sh
-. /lib/functions/uci-defaults.sh
-MAC=
-
-case "$(au1000_board_name)" in
- 'internetbox')
- MAC="$( au1000_yamonenv_getvar 'ethaddr' )"
- MAC="$( macaddr_canonicalize "$MAC" )"
-
- [ -n "$MAC ] && ucidef_set_interface_macaddr lan "$MAC"
- ;;
-esac
-
-[ -z "$MAC" ] || uci commit network
diff --git a/target/linux/au1000/base-files/lib/au1000.sh b/target/linux/au1000/base-files/lib/au1000.sh
deleted file mode 100644
index 556598d..0000000
--- a/target/linux/au1000/base-files/lib/au1000.sh
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/bin/sh
-
-au1000_yamonenv_getvar()
-{
- local varname="$1"
- local partition
-
- . /lib/functions.sh
-
- partition="$( find_mtd_part 'yamon env' )"
- YAMONENVFILE="$partition" yamonenv "$varname"
-}
-
-au1000_detect()
-{
- local line board_name model
-
- while read line; do
- case "$line" in
- 'system type'*)
- break
- ;;
- esac
- done <'/proc/cpuinfo'
-
- case "$line" in
- *' MTX-1')
- # both models appear nearly similar: the 'InternetBox' has
- # the same design but shrinked to 1 PCB and only 1 x miniPCI
- # for WiFi/ath5k and 1 x miniPCI for CardBus/UMTS, they differ
- # in BogoMIPS but there are old MeshCubes with 330 Mhz instead
- # of 400 MHz and no Cube has 'imei' (for UMTS) set in bootloader-env
-
- if [ -n "$( au1000_yamonenv_getvar 'imei' )" ]; then
- board_name='internetbox'
- model='T-Mobile InternetBox TMD SB1-S'
- else
- board_name='meshcube'
- model='4G Systems AccessCube/MeshCube'
- fi
- ;;
- *)
- board_name='unknown'
- model='unknown'
- ;;
- esac
-
- mkdir -p '/tmp/sysinfo'
- echo "$board_name" >'/tmp/sysinfo/board_name'
- echo "$model" >'/tmp/sysinfo/model'
-}
-
-au1000_board_name()
-{
- local file='/tmp/sysinfo/board_name'
-
- [ -e "$file" ] || au1000_detect
- cat "$file"
-}