02_network 200 B

1234567891011121314
  1. #!/bin/sh
  2. . /lib/functions/uci-defaults.sh
  3. board_config_update
  4. ucidef_set_interface_wan "eth0"
  5. if [ -d "/sys/class/net/eth1" ]; then
  6. ucidef_set_interface_lan "eth1"
  7. fi
  8. board_config_flush
  9. exit 0