114aaffc8bc8f21fe787558b50173fbfb1d4e035
[openwrt.git] / target / linux / lantiq / base-files / lib / preinit / 42_athfix
1 #!/bin/sh
2
3 . /lib/lantiq.sh
4
5 init_atheeprom() {
6         local board=$(lantiq_board_name)
7         case $board in
8         "Netgear DGN3500B")
9                 echo "- loading eeprom -"
10                 dd if=/dev/mtd2 of=/sys/firmware/ath_eeprom bs=1k skip=60 count=4
11                 echo 0 > /sys/bus/pci/slots/0000\:00\:0e.0/power
12                 sleep 1
13                 echo 1 > /sys/bus/pci/rescan
14                 ;;
15         esac
16 }
17
18 boot_hook_add preinit_essential init_atheeprom
19