mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 06:57:57 +00:00
lantiq: add /lib/lantiq.sh and make hotplug handlers use it
SVN-Revision: 29003
This commit is contained in:
parent
5dcbbf0160
commit
832e02cd77
@ -24,9 +24,11 @@ rt2x00_eeprom_extract() {
|
||||
|
||||
[ -e /lib/firmware/$FIRMWARE ] && exit 0
|
||||
|
||||
. /lib/lantiq.sh
|
||||
|
||||
case "$FIRMWARE" in
|
||||
"RT2860.eeprom" )
|
||||
local board=$(grep ^machine /proc/cpuinfo | sed "s/machine.*: \(.*\) - .*/\1/g")
|
||||
local board=$(lantiq_board_name)
|
||||
case $board in
|
||||
ARV7525PW)
|
||||
rt2x00_eeprom_extract "board_config" 1040 272
|
||||
|
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"
|
||||
}
|
Loading…
Reference in New Issue
Block a user