From 1dece11487e937deb4691f73545c1403d018421d Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sat, 15 Dec 2012 02:01:00 +0000 Subject: cleanup basefiles SVN-Revision: 34698 --- target/linux/lantiq/base-files/lib/functions/lantiq.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 target/linux/lantiq/base-files/lib/functions/lantiq.sh (limited to 'target/linux/lantiq/base-files/lib/functions/lantiq.sh') 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" +} -- cgit v1.2.3