02_network 414 B

12345678910111213141516171819202122232425
  1. . /lib/functions.sh
  2. . /lib/functions/uci-defaults.sh
  3. . /lib/functions/system.sh
  4. siflower_setup_interfaces()
  5. {
  6. local board="$1"
  7. case $board in
  8. bananapi,bpi-rv2-n*)
  9. ucidef_set_interfaces_lan_wan 'eth0 eth1 eth2 eth3 eth5' 'eth4'
  10. ;;
  11. *)
  12. ucidef_set_interfaces_lan_wan 'eth0 eth1 eth2' 'eth3'
  13. ;;
  14. esac
  15. }
  16. board_config_update
  17. board=$(board_name)
  18. siflower_setup_interfaces $board
  19. board_config_flush
  20. exit 0