3 [ -e /lib
/firmware
/$FIRMWARE ] && exit 0
6 .
/lib
/functions
/system.sh
9 echo "ath9k eeprom: " "$*"
13 ath9k_eeprom_extract
() {
19 mtd
=$
(find_mtd_chardev
$part)
21 ath9k_eeprom_die
"no mtd device found for partition $part"
23 dd if=$mtd of
=/lib
/firmware
/$FIRMWARE bs
=1 skip
=$offset count
=$count 2>/dev
/null || \
24 ath9k_eeprom_die
"failed to extract from $mtd"
30 "ath9k-eeprom-pci-0000:00:00.0.bin")
33 ath9k_eeprom_extract
"art" 4096 2048
36 ath9k_eeprom_die
"board $board is not supported yet"