aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/base-files/lib/functions/lantiq.sh
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-07-14 07:38:52 +0000
committerJohn Crispin <john@openwrt.org>2014-07-14 07:38:52 +0000
commitc8bde9da4af4b66ce613d37a04bbd601d8b0329d (patch)
treee9ccfe55adfb6e12ba48e3c6357b1295f4eb0863 /target/linux/lantiq/base-files/lib/functions/lantiq.sh
parent7e0e5110bc90a8d6e709b9a070eb2aa82d46f15d (diff)
downloadupstream-c8bde9da4af4b66ce613d37a04bbd601d8b0329d.tar.gz
upstream-c8bde9da4af4b66ce613d37a04bbd601d8b0329d.tar.bz2
upstream-c8bde9da4af4b66ce613d37a04bbd601d8b0329d.zip
lantiq: detect board in preinit state
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41638
Diffstat (limited to 'target/linux/lantiq/base-files/lib/functions/lantiq.sh')
-rw-r--r--target/linux/lantiq/base-files/lib/functions/lantiq.sh2
1 files changed, 0 insertions, 2 deletions
diff --git a/target/linux/lantiq/base-files/lib/functions/lantiq.sh b/target/linux/lantiq/base-files/lib/functions/lantiq.sh
index f02edbcbb1..88da794ca9 100644
--- a/target/linux/lantiq/base-files/lib/functions/lantiq.sh
+++ b/target/linux/lantiq/base-files/lib/functions/lantiq.sh
@@ -13,7 +13,6 @@ lantiq_board_detect() {
lantiq_board_model() {
local model
- [ -f /tmp/sysinfo/model ] || lantiq_board_detect
[ -f /tmp/sysinfo/model ] && model=$(cat /tmp/sysinfo/model)
[ -z "$model" ] && model="unknown"
@@ -23,7 +22,6 @@ lantiq_board_model() {
lantiq_board_name() {
local name
- [ -f /tmp/sysinfo/board_name ] || lantiq_board_detect
[ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
[ -z "$name" ] && name="unknown"