FreeBSD Bugzilla – Attachment 159879 Details for
Bug 195502
Support IPv6 addresses in /etc/rc.d/netwait
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
New patch against 10.2-RELEASE
netwait-ipv6.patch (text/plain), 673 bytes, created by
Roger Leigh
on 2015-08-14 21:13:00 UTC
(
hide
)
Description:
New patch against 10.2-RELEASE
Filename:
MIME Type:
Creator:
Roger Leigh
Created:
2015-08-14 21:13:00 UTC
Size:
673 bytes
patch
obsolete
>--- /etc/rc.d/netwait.old 2015-08-14 21:08:18.184173000 +0100 >+++ /etc/rc.d/netwait 2015-08-14 22:09:52.299484000 +0100 >@@ -21,7 +21,7 @@ > > netwait_start() > { >- local ip rc count output link >+ local ip rc count output link PING > > if [ -z "${netwait_ip}" ]; then > err 1 "You must define one or more IP addresses in netwait_ip" >@@ -72,7 +72,16 @@ > > count=1 > while [ ${count} -le ${netwait_timeout} ]; do >- /sbin/ping -t 1 -c 1 -o ${ip} >/dev/null 2>&1 >+ case "$ip" in >+ *:*) >+ PING="/sbin/ping6 -X 1 -c 1 -o" >+ ;; >+ *) >+ PING="/sbin/ping -t 1 -c 1 -o" >+ ;; >+ esac >+ >+ $PING ${ip} >/dev/null 2>&1 > rc=$? > > if [ $rc -eq 0 ]; then
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 195502
:
149990
| 159879