diff options
author | John Crispin <john@openwrt.org> | 2011-11-12 23:40:16 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2011-11-12 23:40:16 +0000 |
commit | 832e02cd7738b6fa0e82a804b04fd8f44589c66f (patch) | |
tree | e1f354feb218606f8536965809b830f017ad2309 /target/linux/lantiq/base-files/etc/hotplug.d | |
parent | 5dcbbf0160f1a619a1391df6477c2bfc0e92bde1 (diff) | |
download | upstream-832e02cd7738b6fa0e82a804b04fd8f44589c66f.tar.gz upstream-832e02cd7738b6fa0e82a804b04fd8f44589c66f.tar.bz2 upstream-832e02cd7738b6fa0e82a804b04fd8f44589c66f.zip |
lantiq: add /lib/lantiq.sh and make hotplug handlers use it
SVN-Revision: 29003
Diffstat (limited to 'target/linux/lantiq/base-files/etc/hotplug.d')
-rw-r--r-- | target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom | 4 |
1 files changed, 3 insertions, 1 deletions
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 |