faabe8e8e6
Many packages for OpenWrt currently assume that lan is the "internal" side of the network map, e.g. if installed, dnsmasq will hand out DHCP leases on lan, firewall will allow forwarding on lan. While at it, also configure a lan interface if eth1 exists. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> SVN-Revision: 47326
9 lines
181 B
Bash
9 lines
181 B
Bash
#!/bin/sh
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
ucidef_set_interface_loopback
|
|
ucidef_set_interface_wan "eth0"
|
|
if [ -d "/sys/class/net/eth1" ]; then
|
|
ucidef_set_interface_lan "eth1"
|
|
fi
|