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

(-)/etc/init.d/net.lo.orig (-2 / +9 lines)
Lines 650-661 Link Here
650
650
651
	local OIFS="${IFS}" SIFS="${IFS-y}"
651
	local OIFS="${IFS}" SIFS="${IFS-y}"
652
	local IFS="$__IFS"
652
	local IFS="$__IFS"
653
	local fam=""
653
	for cmd in ${routes}; do
654
	for cmd in ${routes}; do
654
		unset IFS
655
		unset IFS
655
		if ${first}; then
656
		if ${first}; then
656
			first=false
657
			first=false
657
			einfo "Adding routes"
658
			einfo "Adding routes"
658
		fi
659
		fi
660
661
		case ${cmd} in
662
			-6" "*) fam="-6"; cmd=${cmd#-6 };;
663
			-4" "*) fam="-4"; cmd=${cmd#-4 };;
664
		esac
665
659
		eindent
666
		eindent
660
		ebegin ${cmd}
667
		ebegin ${cmd}
661
		# Work out if we're a host or a net if not told
668
		# Work out if we're a host or a net if not told
Lines 668-677 Link Here
668
			*)                                 cmd="-host ${cmd}";;
675
			*)                                 cmd="-host ${cmd}";;
669
		esac
676
		esac
670
		if ${hidefirstroute}; then
677
		if ${hidefirstroute}; then
671
			_add_route ${cmd} >/dev/null 2>&1
678
			_add_route ${fam} ${cmd} >/dev/null 2>&1
672
			hidefirstroute=false
679
			hidefirstroute=false
673
		else
680
		else
674
			_add_route ${cmd} >/dev/null
681
			_add_route ${fam} ${cmd} >/dev/null
675
		fi
682
		fi
676
		eend $?
683
		eend $?
677
		eoutdent
684
		eoutdent

Return to bug 447310