Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 14636
Collapse All | Expand All

(-)/etc/init.d/net.eth0 (-2 / +2 lines)
Lines 58-70 Link Here
58
		ebegin "  Adding aliases"
52
		ebegin "  Adding aliases"
59
		for x in $(eval echo \$\{alias_${IFACE}\})
53
		for x in $(eval echo \$\{alias_${IFACE}\})
60
		do
54
		do
61
			aliasbcast="$(eval echo \$\{broadcast_${IFACE}\} \| awk \'\{ print \$$((num + 1)) \}\')"
55
			aliasbcast="$(eval echo \$\{broadcast_${IFACE}\} \| perl -ane \'print \$F[\'$num\'-2]\')"
62
			if [ -n "${aliasbcast}" ]
56
			if [ -n "${aliasbcast}" ]
63
			then
57
			then
64
				aliasbcast="broadcast ${aliasbcast}"
58
				aliasbcast="broadcast ${aliasbcast}"
65
			fi
59
			fi
66
60
67
			aliasnmask="$(eval echo \$\{netmask_${IFACE}\} \| awk \'\{ print \$$((num + 1)) \}\')"
61
			aliasnmask="$(eval echo \$\{netmask_${IFACE}\} \| perl -ane \'print \$F[\'$num\'-2]\')"
68
			if [ -n "${aliasnmask}" ]
62
			if [ -n "${aliasnmask}" ]
69
			then
63
			then
70
				aliasnmask="netmask ${aliasnmask}"
64
				aliasnmask="netmask ${aliasnmask}"

Return to bug 14636