ramips: fix wifi EEPROM extraction on DIR-615-Dx models
[openwrt.git] / target / linux / ramips / base-files / etc / hotplug.d / firmware / 10-rt2x00-eeprom
index bb7f662..5989f79 100644 (file)
@@ -11,7 +11,7 @@ rt2x00_eeprom_extract() {
        local count=$3
        local mtd
 
-       . /etc/functions.sh
+       . /lib/functions.sh
 
        mtd=$(find_mtd_part $part)
        [ -n "$mtd" ] || \
@@ -28,13 +28,12 @@ rt2x00_eeprom_extract() {
 board=$(ramips_board_name)
 
 case "$FIRMWARE" in
-"RT288X.eeprom" | \
-"RT305X.eeprom" | \
-"RT3883.eeprom")
+"soc_wmac.eeprom")
        case $board in
        dir-300-b1 | \
        dir-600-b1 | \
-       dir-600-b2)
+       dir-600-b2 | \
+       dir-615-d)
                rt2x00_eeprom_extract "devdata" 16384 272
                ;;
 
@@ -58,11 +57,13 @@ case "$FIRMWARE" in
        all5002 | \
        argus-atp52b | \
        bc2 | \
+       broadway | \
        carambola | \
        dir-615-h1 | \
        dir-620-a1 | \
        esr-9753 | \
        fonera20n | \
+       rt-n13u | \
        freestation5 | \
        hw550-3g | \
        mofi3500-3gn | \