12345678910111213141516 |
- . /lib/functions/system.sh
- preinit_fix_eeprom() {
- case $(board_name) in
- mercusys,mr90x-v1)
- eeprom="/lib/firmware/mediatek/mt7986_eeprom_mt7975_dual.bin"
- oem="/tmp/tp_data/MT7986_EEPROM.bin"
- [ ! -L $eeprom -a -e $oem ] && \
- mv -f $eeprom $eeprom.bak && ln -s $oem $eeprom
- ;;
- *)
- ;;
- esac
- }
- boot_hook_add preinit_main preinit_fix_eeprom
|