02_network 382 B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. . /lib/functions/uci-defaults.sh
  3. board_config_update
  4. case "$(board_name)" in
  5. "friendlyarm,nanopi-r2" \
  6. |"friendlyarm,nanopi-r2s" \
  7. |"thinkpenguin,tpe-r1400")
  8. ucidef_set_interfaces_lan_wan "eth1" "eth0"
  9. ;;
  10. "friendlyarm,nanopi-neo3")
  11. ucidef_set_interface_wan 'eth0'
  12. ;;
  13. *)
  14. ucidef_set_interface_wan 'eth0'
  15. ;;
  16. esac
  17. board_config_flush
  18. exit 0