immortalwrt/target/linux/bcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom

26 lines
447 B
Plaintext
Raw Normal View History

2017-09-06 19:19:45 +08:00
#!/bin/sh
# Based on gabors ralink wisoc implementation.
[ -e /lib/firmware/$FIRMWARE ] && exit 0
2019-11-23 01:25:25 +08:00
. /lib/functions/caldata.sh
2017-09-06 19:19:45 +08:00
board=$(board_name)
case "$FIRMWARE" in
"rt2x00.eeprom" )
case $board in
2020-04-20 08:30:18 +08:00
huawei,echolife-hg556a-c)
2019-11-23 01:25:25 +08:00
caldata_extract "cal_data" 0x1fe00 0x200
2017-09-06 19:19:45 +08:00
;;
2020-04-20 08:30:18 +08:00
huawei,echolife-hg622|\
huawei,echolife-hg655b)
2019-11-23 01:25:25 +08:00
caldata_extract "cal_data" 0x0 0x200
2017-09-06 19:19:45 +08:00
;;
*)
2019-11-23 01:25:25 +08:00
caldata_die "board $board is not supported yet"
2017-09-06 19:19:45 +08:00
;;
esac
;;
esac