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

(-)init.d/shutdown.sh (-1 / +4 lines)
Lines 1-8 Link Here
1
# Copyright 1999-2005 Gentoo Foundation
1
# Copyright 1999-2005 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
/sbin/halt -ihdp
4
opts="-hdp"
5
[[ ${RC_DOWN_INTERFACE:-yes} == "yes" ]] && opts="${opts}i"
5
6
7
/sbin/halt "${opts}"
8
6
# hmm, if the above failed, that's kind of odd ...
9
# hmm, if the above failed, that's kind of odd ...
7
# so let's force a halt
10
# so let's force a halt
8
/sbin/halt -f
11
/sbin/halt -f
(-)etc/conf.d/rc (+6 lines)
Lines 35-40 Link Here
35
35
36
RC_AUTO_INTERFACE="no"
36
RC_AUTO_INTERFACE="no"
37
37
38
# RC_DOWN_INTERFACE allows you to specify if RC will bring the interface
39
# compeletly down when it stops. The default is yes, but there are some
40
# instances where you may not want this to happen.
41
42
RC_DOWN_INTERFACE="yes"
43
38
# RC_VOLUME_ORDER allows you to specify, or even remove the volume setup
44
# RC_VOLUME_ORDER allows you to specify, or even remove the volume setup
39
# for various volume managers (MD, EVMS2, LVM, DM, etc).  Note that they are
45
# for various volume managers (MD, EVMS2, LVM, DM, etc).  Note that they are
40
# stopped in reverse order.
46
# stopped in reverse order.
(-)init.d/net.lo (-1 / +2 lines)
Lines 707-713 Link Here
707
		interface_del_addresses "${i}"
707
		interface_del_addresses "${i}"
708
708
709
		# Do final shut down of this alias
709
		# Do final shut down of this alias
710
		if ! ${IN_BACKGROUND}; then
710
		if [[ ${IN_BACKGROUND} != "true" \
711
			&& ${RC_DOWN_INTERFACE} == "yes" ]]; then
711
			ebegin "Shutting down ${i}"
712
			ebegin "Shutting down ${i}"
712
			interface_iface_stop "${i}"
713
			interface_iface_stop "${i}"
713
			eend "$?"
714
			eend "$?"
(-)etc/conf.d/net.example (-4 / +8 lines)
Lines 619-625 Link Here
619
#	# Test for link on the interface prior to bringing it up.  This
619
#	# Test for link on the interface prior to bringing it up.  This
620
#	# only works on some network adapters and requires the mii-diag
620
#	# only works on some network adapters and requires the mii-diag
621
#	# package to be installed.
621
#	# package to be installed.
622
#	if mii-tool ${IFACE} 2> /dev/null | grep -q 'no link'; then
622
#	if mii-tool "${IFACE}" 2> /dev/null | grep -q 'no link'; then
623
#		ewarn "No link on ${IFACE}, aborting configuration"
623
#		ewarn "No link on ${IFACE}, aborting configuration"
624
#		return 1
624
#		return 1
625
#	fi 
625
#	fi 
Lines 627-637 Link Here
627
#	# Test for link on the interface prior to bringing it up.  This
627
#	# Test for link on the interface prior to bringing it up.  This
628
#	# only works on some network adapters and requires the ethtool
628
#	# only works on some network adapters and requires the ethtool
629
#	# package to be installed.
629
#	# package to be installed.
630
#	if ethtool ${IFACE} | grep -q 'Link detected: no'; then
630
#	if ethtool "${IFACE}" | grep -q 'Link detected: no'; then
631
#		ewarn "No link on ${IFACE}, aborting configuration"
631
#		ewarn "No link on ${IFACE}, aborting configuration"
632
#		return 1
632
#		return 1
633
#	fi
633
#	fi
634
#
634
#
635
#
635
#	# Remember to return 0 on success
636
#	# Remember to return 0 on success
636
#	return 0
637
#	return 0
637
#}
638
#}
Lines 658-665 Link Here
658
#}
659
#}
659
660
660
#postdown() {
661
#postdown() {
661
#	# This function is mostly here for completeness... I haven't
662
#	# Enable Wake-On-LAN for the interface
662
#	# thought of anything nifty to do with it yet ;-)
663
#	# Probably a good idea to set RC_DOWN_INTERFACE="no" in /etc/conf.d/rc
664
#	# as well ;)
665
#	ethtool -s "${IFACE}" wol g
666
#
663
#	# Return 0 always
667
#	# Return 0 always
664
#	return 0
668
#	return 0
665
#}
669
#}

Return to bug 113880