1
0
Fork 0
forked from mirror/openwrt
openwrt/target/linux/ath79/tiny/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
Rosen Penev 605543bc7b ath79: wnr200-v3: handle eeprom with nvmem
Userspace handling is deprecated.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20112
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-09-27 00:43:16 +02:00

26 lines
450 B
Bash

#!/bin/sh
[ -e /lib/firmware/$FIRMWARE ] && exit 0
. /lib/functions/caldata.sh
board=$(board_name)
case "$FIRMWARE" in
"ath9k-eeprom-pci-0000:00:00.0.bin")
case $board in
ubnt,airrouter|\
ubnt,bullet-m-ar7240|\
ubnt,bullet-m-ar7241|\
ubnt,nanobridge-m|\
ubnt,nanostation-loco-m|\
ubnt,nanostation-m|\
ubnt,picostation-m)
caldata_extract "art" 0x1000 0x1000
;;
*)
caldata_die "board $board is not supported yet"
;;
esac
;;
esac