1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00
freebsd-ports/sysutils/heartbeat2/files/patch-heartbeat_resource.d_IPaddr.in
Stefan Walter 6f3ef44893 Fix detection of interfaces.
PR:		126628
Submitted by:	Oleg Gawriloff <barzog@telecom.by>
Approved by:	maintainer
2008-10-16 18:07:22 +00:00

12 lines
426 B
Plaintext

--- heartbeat/resource.d/IPaddr.in.orig 2008-10-16 19:49:31.000000000 +0200
+++ heartbeat/resource.d/IPaddr.in 2008-10-16 19:51:23.000000000 +0200
@@ -105,7 +105,7 @@
case $SYSTYPE in
*BSD)
- $IFCONFIG | grep "$ipaddr" -B4 | grep "UP," | cut -d ":" -f 1
+ $IFCONFIG | grep "$ipaddr " -B20 | grep "UP," | tail -n 1 | cut -d ":" -f 1
return 0;;
*)
: "comparing $ipaddr to $addr (from ifconfig)"