diff options
-rw-r--r-- | target/linux/lantiq/base-files/lib/functions/lantiq.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/lantiq/base-files/lib/functions/lantiq.sh b/target/linux/lantiq/base-files/lib/functions/lantiq.sh index 88da794ca9..f02edbcbb1 100644 --- a/target/linux/lantiq/base-files/lib/functions/lantiq.sh +++ b/target/linux/lantiq/base-files/lib/functions/lantiq.sh @@ -13,6 +13,7 @@ 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" @@ -22,6 +23,7 @@ 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" |