Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 19695 | Differences between
and this patch

Collapse All | Expand All

(-)net.eth0 (+11 lines)
Lines 26-31 Link Here
26
	dhcpcd_IFACE="$(eval echo \$\{dhcpcd_${IFACE}\})"
26
	dhcpcd_IFACE="$(eval echo \$\{dhcpcd_${IFACE}\})"
27
	inet6_IFACE="$(eval echo \$\{inet6_${IFACE}\})"
27
	inet6_IFACE="$(eval echo \$\{inet6_${IFACE}\})"
28
	alias_IFACE="$(eval echo \$\{alias_${IFACE}\})"
28
	alias_IFACE="$(eval echo \$\{alias_${IFACE}\})"
29
	route_IFACE="$(eval echo \$\{alias_${IFACE}\})"
29
	status_IFACE="$(ifconfig | gawk -v IFACE="${IFACE}" '/Link/ { if ($1 == IFACE) print "up" }')"
30
	status_IFACE="$(ifconfig | gawk -v IFACE="${IFACE}" '/Link/ { if ($1 == IFACE) print "up" }')"
30
}
31
}
31
32
Lines 123-128 Link Here
123
		eend 0
124
		eend 0
124
	fi
125
	fi
125
126
127
	if [ -n "$(eval echo \$\{route_${IFACE}\})"  ]
128
	then
129
		ebegin "  Setting static routes..."
130
		/sbin/route ${route_IFACE} dev ${IFACE} &> /dev/null || {
131
			retval=$?
132
			eend ${retval} "Failed to add static routes on ${IFACE}"
133
                        return ${retval}
134
		}
135
	fi
136
126
	# Enabling rp_filter causes wacky packets to be auto-dropped by
137
	# Enabling rp_filter causes wacky packets to be auto-dropped by
127
	# the kernel
138
	# the kernel
128
	if [ -e /proc/sys/net/ipv4/conf/${IFACE}/rp_filter ]
139
	if [ -e /proc/sys/net/ipv4/conf/${IFACE}/rp_filter ]

Return to bug 19695