summaryrefslogtreecommitdiff
path: root/target/linux/kirkwood/base-files/lib/kirkwood.sh
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/kirkwood/base-files/lib/kirkwood.sh')
-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"
+}