Author: nbd Date: 2015-10-31 10:30:57 +0100 (Sat, 31 Oct 2015) New Revision: 47326
Modified: trunk/target/linux/malta/base-files/etc/uci-defaults/02-network Log: malta: make eth0 the wan interface by default 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 <[email protected]> Modified: trunk/target/linux/malta/base-files/etc/uci-defaults/02-network =================================================================== --- trunk/target/linux/malta/base-files/etc/uci-defaults/02-network 2015-10-31 09:30:37 UTC (rev 47325) +++ trunk/target/linux/malta/base-files/etc/uci-defaults/02-network 2015-10-31 09:30:57 UTC (rev 47326) @@ -3,4 +3,7 @@ . /lib/functions/uci-defaults.sh ucidef_set_interface_loopback -ucidef_set_interface_raw "lan" "eth0" "dhcp" +ucidef_set_interface_wan "eth0" +if [ -d "/sys/class/net/eth1" ]; then + ucidef_set_interface_lan "eth1" +fi _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
