View | Details | Raw Unified | Return to bug 195502 | Differences between
and this patch

Collapse All | Expand All

(-)/etc/rc.d/netwait (-2 / +11 lines)
Lines 21-27 Link Here
21
21
22
netwait_start()
22
netwait_start()
23
{
23
{
24
	local ip rc count output link
24
	local ip rc count output link PING
25
25
26
	if [ -z "${netwait_ip}" ]; then
26
	if [ -z "${netwait_ip}" ]; then
27
		err 1 "You must define one or more IP addresses in netwait_ip"
27
		err 1 "You must define one or more IP addresses in netwait_ip"
Lines 72-78 Link Here
72
72
73
		count=1
73
		count=1
74
		while [ ${count} -le ${netwait_timeout} ]; do
74
		while [ ${count} -le ${netwait_timeout} ]; do
75
			/sbin/ping -t 1 -c 1 -o ${ip} >/dev/null 2>&1
75
			case "$ip" in
76
				*:*)
77
					PING="/sbin/ping6 -X 1 -c 1 -o"
78
					;;
79
				*)
80
					PING="/sbin/ping -t 1 -c 1 -o"
81
					;;
82
			esac
83
84
			$PING ${ip} >/dev/null 2>&1
76
			rc=$?
85
			rc=$?
77
86
78
			if [ $rc -eq 0 ]; then
87
			if [ $rc -eq 0 ]; then

Return to bug 195502