lantiq: add /lib/lantiq.sh and make hotplug handlers use it
SVN-Revision: 29003
This commit is contained in:
9
target/linux/lantiq/base-files/lib/lantiq.sh
Normal file
9
target/linux/lantiq/base-files/lib/lantiq.sh
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user