88a40b5d41645ebab40890dd12070f0162e3bdcd
[openwrt/staging/chunkeey.git] / target / linux / ath79 / nand / base-files / etc / hotplug.d / firmware / 10-ath9k-eeprom
1 #!/bin/sh
2
3 [ -e /lib/firmware/$FIRMWARE ] && exit 0
4
5 . /lib/functions/caldata.sh
6
7 board=$(board_name)
8
9 case "$FIRMWARE" in
10 "ath9k-eeprom-ahb-18100000.wmac.bin")
11 case $board in
12 zyxel,nbg6716)
13 caldata_extract "art" 0x1000 0x440
14 ath9k_patch_mac $(mtd_get_mac_ascii u-boot-env ethaddr)
15 ;;
16 *)
17 caldata_die "board $board is not supported yet"
18 ;;
19 esac
20 ;;
21 esac