. /lib/functions/system.sh

do_extract_caldata() {
	case $(board_name) in
	glinet,gl-mt6000|\
	jdcloud,re-cp-03)
		FIRMWARE=mediatek/mt7986_eeprom_mt7976_dual.bin \
			sh /etc/hotplug.d/firmware/11-mt76-caldata
		;;
	esac
}
boot_hook_add preinit_main do_extract_caldata
