mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
40 lines
664 B
Bash
40 lines
664 B
Bash
#!/bin/sh
|
|
|
|
[ -e /lib/firmware/$FIRMWARE ] && exit 0
|
|
|
|
. /lib/functions/caldata.sh
|
|
|
|
board=$(board_name)
|
|
|
|
case "$FIRMWARE" in
|
|
"mediatek/mt7981_eeprom_mt7976_dbdc.bin")
|
|
case "$board" in
|
|
cmcc,rax3000m-emmc)
|
|
caldata_extract_mmc "factory" 0x0 0x1000
|
|
;;
|
|
esac
|
|
;;
|
|
"mediatek/mt7986_eeprom_mt7976_dbdc.bin")
|
|
case "$board" in
|
|
asus,tuf-ax4200)
|
|
CI_UBIPART="UBI_DEV"
|
|
caldata_extract_ubi "Factory" 0x0 0x1000
|
|
;;
|
|
hf,m7986r1-emmc)
|
|
caldata_extract_mmc "factory" 0x0 0x1000
|
|
;;
|
|
esac
|
|
;;
|
|
"mediatek/mt7986_eeprom_mt7976_dual.bin")
|
|
case "$board" in
|
|
glinet,gl-mt6000|\
|
|
jdcloud,re-cs-05)
|
|
caldata_extract_mmc "factory" 0x0 0x1000
|
|
;;
|
|
esac
|
|
;;
|
|
*)
|
|
exit 1
|
|
;;
|
|
esac
|