02_network 230 B

123456789101112131415
  1. #!/bin/sh
  2. . /lib/functions/uci-defaults.sh
  3. board_config_update
  4. if grep -q lan1 /proc/net/dev; then
  5. ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
  6. else
  7. ucidef_set_interface_lan "eth0"
  8. fi
  9. board_config_flush
  10. exit 0