01_network 292 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2014-2015 OpenWrt.org
  4. #
  5. . /lib/functions/uci-defaults.sh
  6. board_config_update
  7. case "$(cat /tmp/sysinfo/board_name)" in
  8. erlite)
  9. ucidef_set_interfaces_lan_wan "eth0" "eth1"
  10. ;;
  11. *)
  12. ucidef_set_interfaces_lan_wan "eth0" "eth1"
  13. ;;
  14. esac
  15. board_config_flush
  16. exit 0