From bddadbe32baf2954ea49087cb81c1a5fc58eb7bb Mon Sep 17 00:00:00 2001 From: blogic Date: Sat, 12 Nov 2011 23:40:16 +0000 Subject: lantiq: add /lib/lantiq.sh and make hotplug handlers use it git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29003 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/lantiq/base-files/lib/lantiq.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 target/linux/lantiq/base-files/lib/lantiq.sh (limited to 'target/linux/lantiq/base-files/lib') diff --git a/target/linux/lantiq/base-files/lib/lantiq.sh b/target/linux/lantiq/base-files/lib/lantiq.sh new file mode 100644 index 0000000000..75e8ac272b --- /dev/null +++ b/target/linux/lantiq/base-files/lib/lantiq.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +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" +} -- cgit v1.2.3