lantiq: add /lib/lantiq.sh and make hotplug handlers use it

SVN-Revision: 29003
This commit is contained in:
John Crispin
2011-11-12 23:40:16 +00:00
parent 5dcbbf0160
commit 832e02cd77
2 changed files with 12 additions and 1 deletions

View File

@@ -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"
}