02_network 411 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2013-2015 OpenWrt.org
  4. #
  5. . /lib/sunxi.sh
  6. . /lib/functions/uci-defaults.sh
  7. board_config_update
  8. case "$( sunxi_board_name )" in
  9. "olimex,a20-olinuxino-micro")
  10. ucidef_set_interface_lan 'wlan0'
  11. ;;
  12. "lamobo,lamobo-r1")
  13. ucidef_add_switch "switch0" \
  14. "4:lan:1" "0:lan:2" "1:lan:3" "2:lan:4" "3:wan" "8@eth0"
  15. ;;
  16. *)
  17. ucidef_set_interface_lan 'eth0'
  18. ;;
  19. esac
  20. board_config_flush
  21. exit 0