summaryrefslogtreecommitdiff
path: root/target/linux/kirkwood/base-files/lib
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-05-29 16:39:15 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-05-29 16:39:15 +0000
commitba3ad2451426b5a9db9294ed8ebedc7757c2c6e0 (patch)
treeb05a4c827c6326d9240c1a8888f18c49c00aff5f /target/linux/kirkwood/base-files/lib
parentc71838faa1dc9ade9918abbc61b587ff35880a53 (diff)
downloadmtk-20170518-ba3ad2451426b5a9db9294ed8ebedc7757c2c6e0.zip
mtk-20170518-ba3ad2451426b5a9db9294ed8ebedc7757c2c6e0.tar.gz
mtk-20170518-ba3ad2451426b5a9db9294ed8ebedc7757c2c6e0.tar.bz2
kirkwood: use uci-defaults to configure different boards
Signed-off-by: Luka Perkov <openwrt@lukaperkov.net> SVN-Revision: 31990
Diffstat (limited to 'target/linux/kirkwood/base-files/lib')
-rw-r--r--target/linux/kirkwood/base-files/lib/kirkwood.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/kirkwood/base-files/lib/kirkwood.sh b/target/linux/kirkwood/base-files/lib/kirkwood.sh
new file mode 100644
index 0000000..4fcd760
--- /dev/null
+++ b/target/linux/kirkwood/base-files/lib/kirkwood.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+kirkwood_hardware_name() {
+ grep ^Hardware /proc/cpuinfo | sed "s/Hardware.*: \(.*\)/\1/g"
+}