ramips: extract eeprom for the PCIe wlan module on the RT-N56U
authorGabor Juhos <juhosg@openwrt.org>
Tue, 14 Feb 2012 17:32:45 +0000 (17:32 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Tue, 14 Feb 2012 17:32:45 +0000 (17:32 +0000)
SVN-Revision: 30529

target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom

index ace012acc769e334b97a31a9c25b4d280073ed2b..65b2cd39c8ad44f1e796ce1005925734557e0fc8 100644 (file)
@@ -23,13 +23,13 @@ rt2x00_eeprom_extract() {
 
 [ -e /lib/firmware/$FIRMWARE ] && exit 0
 
+. /lib/ramips.sh
+
+board=$(ramips_board_name)
+
 case "$FIRMWARE" in
 "RT288X.eeprom" | \
 "RT305X.eeprom")
-       . /lib/ramips.sh
-
-       local board=$(ramips_board_name)
-
        case $board in
        dir-300-b1 | \
        dir-600-b1 | \
@@ -78,4 +78,12 @@ case "$FIRMWARE" in
                ;;
        esac
        ;;
+
+"rt2x00pci_1_0.eeprom")
+       case $board in
+       rt-n56u)
+               rt2x00_eeprom_extract "factory" 32768 272
+               ;;
+       esac
+       ;;
 esac