02_b53_hack.sh 343 B

1234567891011121314151617
  1. #!/bin/sh
  2. . /lib/sunxi.sh
  3. do_b53_hack() {
  4. # hack: enable switch on Lamobo R1 and reset counters
  5. case "$( sunxi_board_name )" in
  6. "lamobo,lamobo-r1")
  7. ifconfig eth0 up
  8. sleep 1
  9. swconfig dev switch0 set reset 1
  10. swconfig dev switch0 set reset_mib 1
  11. swconfig dev switch0 set apply 1
  12. ;;
  13. esac
  14. }
  15. boot_hook_add preinit_main do_b53_hack