aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/base-files/lib
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2012-12-15 02:01:00 +0000
committerJohn Crispin <john@openwrt.org>2012-12-15 02:01:00 +0000
commit1dece11487e937deb4691f73545c1403d018421d (patch)
tree4a2e99f213629991d7a9520a3408028e3b42f9b3 /target/linux/lantiq/base-files/lib
parent601bc28669719c8ef004e108cb0bc9e5c784412e (diff)
downloadupstream-1dece11487e937deb4691f73545c1403d018421d.tar.gz
upstream-1dece11487e937deb4691f73545c1403d018421d.tar.bz2
upstream-1dece11487e937deb4691f73545c1403d018421d.zip
cleanup basefiles
SVN-Revision: 34698
Diffstat (limited to 'target/linux/lantiq/base-files/lib')
-rw-r--r--target/linux/lantiq/base-files/lib/functions/lantiq.sh9
-rw-r--r--target/linux/lantiq/base-files/lib/lantiq.sh17
-rw-r--r--target/linux/lantiq/base-files/lib/preinit/42_athfix2
3 files changed, 10 insertions, 18 deletions
diff --git a/target/linux/lantiq/base-files/lib/functions/lantiq.sh b/target/linux/lantiq/base-files/lib/functions/lantiq.sh
new file mode 100644
index 0000000000..ca52d08a60
--- /dev/null
+++ b/target/linux/lantiq/base-files/lib/functions/lantiq.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+lantiq_board_id() {
+ grep "^system type" /proc/cpuinfo | sed "s/system type.*: \(.*\)/\1/g" | sed "s/.* - \(.*\) - .*/\1/g"
+}
+
+lantiq_board_name() {
+ grep "^system type" /proc/cpuinfo | sed "s/system type.*: \(.*\)/\1/g" | sed "s/.* - \(.*\)/\1/g"
+}
diff --git a/target/linux/lantiq/base-files/lib/lantiq.sh b/target/linux/lantiq/base-files/lib/lantiq.sh
deleted file mode 100644
index e4f1471a9e..0000000000
--- a/target/linux/lantiq/base-files/lib/lantiq.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-lantiq_soc_has_adsl() {
- ls /lib/modules/*/drv_dsl_cpe_api.ko
-}
-
-lantiq_soc_name() {
- grep ^system /proc/cpuinfo | sed "s/system type.*: \(.*\)/\1/g"
-}
-
-lantiq_board_name() {
- grep ^machine /proc/cpuinfo | sed "s/machine.*: \(.*\)/\1/g" | sed "s/\(.*\) - .*/\1/g"
-}
-
-lantiq_dsl_fwannex() {
- ls /lib/firmware/dsl-fw-*.bin 2> /dev/null | sed "s/.*\([ab]\)\.bin/\1/g"
-}
diff --git a/target/linux/lantiq/base-files/lib/preinit/42_athfix b/target/linux/lantiq/base-files/lib/preinit/42_athfix
index 114aaffc8b..d182fbf340 100644
--- a/target/linux/lantiq/base-files/lib/preinit/42_athfix
+++ b/target/linux/lantiq/base-files/lib/preinit/42_athfix
@@ -1,6 +1,6 @@
#!/bin/sh
-. /lib/lantiq.sh
+. /lib/functions/lantiq.sh
init_atheeprom() {
local board=$(lantiq_board_name)