81_fix_eeprom 352 B

12345678910111213141516
  1. . /lib/functions/system.sh
  2. preinit_fix_eeprom() {
  3. case $(board_name) in
  4. mercusys,mr90x-v1)
  5. eeprom="/lib/firmware/mediatek/mt7986_eeprom_mt7975_dual.bin"
  6. oem="/tmp/tp_data/MT7986_EEPROM.bin"
  7. [ ! -L $eeprom -a -e $oem ] && \
  8. mv -f $eeprom $eeprom.bak && ln -s $oem $eeprom
  9. ;;
  10. *)
  11. ;;
  12. esac
  13. }
  14. boot_hook_add preinit_main preinit_fix_eeprom