02_network 338 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. . /lib/functions/uci-defaults.sh
  3. . /lib/functions/system.sh
  4. . /lib/oxnas.sh
  5. board_config_update
  6. lan_mac=""
  7. case "$(oxnas_board_name)" in
  8. kd20)
  9. lan_mac="$(legacy_boot_mac_adr)"
  10. ;;
  11. esac
  12. ucidef_set_interface_lan "eth0" "dhcp"
  13. [ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" "$lan_mac"
  14. board_config_flush
  15. exit 0