You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/target/linux/orion/base-files/etc/board.d/02_network

16 lines
230 B
Bash

#!/bin/sh
. /lib/functions/uci-defaults.sh
board_config_update
if grep -q lan1 /proc/net/dev; then
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
else
ucidef_set_interface_lan "eth0"
fi
board_config_flush
exit 0