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

Collapse All | Expand All

(-)/tmp/udev-9999.ebuild (+15 lines)
Lines 471-476 Link Here
471
	elog "http://wiki.gentoo.org/wiki/Udev"
471
	elog "http://wiki.gentoo.org/wiki/Udev"
472
	elog "http://wiki.gentoo.org/wiki/Udev/upgrade"
472
	elog "http://wiki.gentoo.org/wiki/Udev/upgrade"
473
473
474
	# If user has disabled 80-net-name-slot.rules using a empty file or a symlink to /dev/null,
475
	# do the same for 80-net-setup-link.rules to keep the old behavior
476
	local net_move=no
477
	local net_rules_path="${ROOT}"/etc/udev/rules.d
478
	local net_name_slot="${net_rules_path}"/80-net-name-slot.rules
479
	local net_setup_link="${net_rules_path}"/80-net-setup-link.rules
480
	[[ -e ${net_setup_link} ]] && net_move=no
481
	[[ -f ${net_name_slot} && $(grep -v ^# ${net_name_slot} | wc -l) == 0 ]] && net_move=yes
482
	[[ -L ${net_name_slot} && $(readlink ${net_name_slot}) == /dev/null ]] && net_move=yes
483
	if [[ ${net_move} == yes ]]; then
484
		ebegin "Because empty ${net_name_slot} was detected, symlinking ${net_setup_link} to /dev/null"
485
		ln -nfs /dev/null "${net_setup_link}"
486
		eend $?
487
	fi
488
474
	# Update hwdb database in case the format is changed by udev version.
489
	# Update hwdb database in case the format is changed by udev version.
475
	if has_version 'sys-apps/hwids[udev]'; then
490
	if has_version 'sys-apps/hwids[udev]'; then
476
		udevadm hwdb --update --root="${ROOT%/}"
491
		udevadm hwdb --update --root="${ROOT%/}"

Return to bug 503140