1
0

99-default_network 266 B

1234567891011121314151617
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2013-2015 OpenWrt.org
  4. #
  5. . /lib/functions/uci-defaults.sh
  6. board_config_update
  7. json_is_a network object && exit 0
  8. ucidef_set_interface_lan 'eth0'
  9. [ -d /sys/class/net/eth1 ] && ucidef_set_interface_wan 'eth1'
  10. board_config_flush
  11. exit 0