filogic: add support for ASUS TUF-AX4200
[openwrt/staging/dedeckeh.git] / target / linux / mediatek / filogic / base-files / etc / hotplug.d / firmware / 11-mt76-caldata
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 "mediatek/mt7986_eeprom_mt7976_dbdc.bin")
11 case "$board" in
12 asus,tuf-ax4200)
13 CI_UBIPART="UBI_DEV"
14 caldata_extract_ubi "Factory" 0x0 0x1000
15 ;;
16 esac
17 ;;
18 *)
19 exit 1
20 ;;
21 esac