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

Collapse All | Expand All

(-)a/init.d.misc/openvpn.in (-1 / +1 lines)
Lines 40-46 start_pre() Link Here
40
{
40
{
41
	# Linux has good dynamic tun/tap creation
41
	# Linux has good dynamic tun/tap creation
42
	if [ "$RC_UNAME" = Linux ]; then
42
	if [ "$RC_UNAME" = Linux ]; then
43
		if [ ! -e /dev/net/tun ]; then
43
		if type modprobe >/dev/null 2>&1 && [ ! -e /dev/net/tun ]; then
44
			if ! modprobe tun; then
44
			if ! modprobe tun; then
45
				eerror "TUN/TAP support is not available in this kernel"
45
				eerror "TUN/TAP support is not available in this kernel"
46
				return 1
46
				return 1
(-)a/init.d/hwclock.in (-1 / +1 lines)
Lines 78-84 start() Link Here
78
		for rtc in /dev/rtc /dev/rtc[0-9]*; do
78
		for rtc in /dev/rtc /dev/rtc[0-9]*; do
79
			[ -e "$rtc" ] && break
79
			[ -e "$rtc" ] && break
80
		done
80
		done
81
		if [ ! -e "${rtc}" ]; then
81
		if [ ! -e "${rtc}" ] && type modprobe >/dev/null 2>&1; then
82
			modprobe -q rtc-cmos || modprobe -q rtc || modprobe -q genrtc
82
			modprobe -q rtc-cmos || modprobe -q rtc || modprobe -q genrtc
83
		fi
83
		fi
84
	fi
84
	fi
(-)a/init.d/procfs.in (-1 / +1 lines)
Lines 14-20 depend() Link Here
14
start()
14
start()
15
{
15
{
16
	# Make sure we insert usbcore if it's a module
16
	# Make sure we insert usbcore if it's a module
17
	if [ -f /proc/modules -a ! -d /proc/bus/usb ]; then
17
	if type modprobe >/dev/null 2>&1 && [ -f /proc/modules -a ! -d /proc/bus/usb ]; then
18
		modprobe -q usbcore
18
		modprobe -q usbcore
19
	fi
19
	fi
20
20
(-)a/net/bonding.sh (-1 / +1 lines)
Lines 28-34 bonding_pre_start() Link Here
28
28
29
	# Load the kernel module if required
29
	# Load the kernel module if required
30
	if [ ! -d /proc/net/bonding ]; then
30
	if [ ! -d /proc/net/bonding ]; then
31
		if ! modprobe bonding; then
31
		if type modprobe >/dev/null 2>&1 && ! modprobe bonding; then
32
			eerror "Cannot load the bonding module"
32
			eerror "Cannot load the bonding module"
33
			return 1
33
			return 1
34
		fi
34
		fi
(-)a/net/ccwgroup.sh (-1 / +3 lines)
Lines 14-20 ccwgroup_pre_start() Link Here
14
	[ -z "${ccwgroup}" ] && return 0
14
	[ -z "${ccwgroup}" ] && return 0
15
15
16
	if [ ! -d /sys/bus/ccwgroup ]; then
16
	if [ ! -d /sys/bus/ccwgroup ]; then
17
		modprobe qeth
17
		if type modprobe >/dev/null 2>&1; then
18
			modprobe qeth
19
		fi
18
		if [ ! -d /sys/bus/ccwgroup ]; then
20
		if [ ! -d /sys/bus/ccwgroup ]; then
19
			eerror "ccwgroup support missing in kernel"
21
			eerror "ccwgroup support missing in kernel"
20
			return 1
22
			return 1
(-)a/net/clip.sh (-1 / +4 lines)
Lines 91-97 clip_pre_start() Link Here
91
	[ -z "${clip}" ] && return 0
91
	[ -z "${clip}" ] && return 0
92
92
93
    if [ ! -r /proc/net/atm/arp ]; then
93
    if [ ! -r /proc/net/atm/arp ]; then
94
		modprobe clip && sleep 2
94
		if type modprobe >/dev/null 2>&1; then
95
			modprobe clip
96
			sleep 2
97
		fi
95
		if [ ! -r /proc/net/atm/arp ]; then
98
		if [ ! -r /proc/net/atm/arp ]; then
96
	    	eerror "You need first to enable kernel support for ATM CLIP"
99
	    	eerror "You need first to enable kernel support for ATM CLIP"
97
	    	return 1
100
	    	return 1
(-)a/net/pppd.sh (-2 / +2 lines)
Lines 166-172 pppd_pre_start() Link Here
166
	if ${haspppoe}; then
166
	if ${haspppoe}; then
167
		if [ ! -e /proc/net/pppoe ]; then
167
		if [ ! -e /proc/net/pppoe ]; then
168
			# Load the PPPoE kernel module
168
			# Load the PPPoE kernel module
169
			if ! modprobe pppoe; then
169
			if type modprobe >/dev/null 2>&1 && ! modprobe pppoe; then
170
				eerror "kernel does not support PPPoE"
170
				eerror "kernel does not support PPPoE"
171
				return 1
171
				return 1
172
			fi
172
			fi
Lines 180-186 pppd_pre_start() Link Here
180
	if ${haspppoa}; then
180
	if ${haspppoa}; then
181
		if [ ! -d /proc/net/atm ]; then
181
		if [ ! -d /proc/net/atm ]; then
182
			# Load the PPPoA kernel module
182
			# Load the PPPoA kernel module
183
			if ! modprobe pppoatm; then
183
			if type modprobe >/dev/null 2>&1 && ! modprobe pppoatm; then
184
				eerror "kernel does not support PPPoATM"
184
				eerror "kernel does not support PPPoATM"
185
				return 1
185
				return 1
186
			fi
186
			fi
(-)a/net/tuntap.sh (-1 / +1 lines)
Lines 21-27 tuntap_pre_start() Link Here
21
	[ -z "${tuntap}" ] && return 0
21
	[ -z "${tuntap}" ] && return 0
22
22
23
	if [ ! -e /dev/net/tun ]; then
23
	if [ ! -e /dev/net/tun ]; then
24
		if ! modprobe tun; then
24
		if type modprobe >/dev/null 2>&1 && ! modprobe tun; then
25
			eerror "TUN/TAP support is not present in this kernel"
25
			eerror "TUN/TAP support is not present in this kernel"
26
			return 1
26
			return 1
27
		fi
27
		fi
(-)a/net/vlan.sh (-2 / +3 lines)
Lines 26-32 _get_vlans() Link Here
26
_check_vlan()
26
_check_vlan()
27
{
27
{
28
	if [ ! -d /proc/net/vlan ]; then
28
	if [ ! -d /proc/net/vlan ]; then
29
		modprobe 8021q
29
		if type modprobe >/dev/null 2>&1; then
30
			modprobe 8021q
31
		fi
30
		if [ ! -d /proc/net/vlan ]; then
32
		if [ ! -d /proc/net/vlan ]; then
31
			eerror "VLAN (802.1q) support is not present in this kernel"
33
			eerror "VLAN (802.1q) support is not present in this kernel"
32
			return 1
34
			return 1
33
- 

Return to bug 342313