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 --- .../linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'target/linux/lantiq/base-files/etc') diff --git a/target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom index e2dfc16311..ad5652a7fc 100644 --- a/target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom +++ b/target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom @@ -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 -- cgit v1.2.3