From 449672fe9c6c2a9bbf4143cf66c3d737cfa22b8d Mon Sep 17 00:00:00 2001 From: "Chas Williams (CONTRACTOR)" Date: Tue, 29 Jan 2013 22:54:00 -0500 Subject: [PATCH] LINUX: ifconfig's output has changed net-tools in Fedora 18 has changed 'inet addr' to just 'inet' (possibly to more closely match the ip command). Reviewed-on: http://gerrit.openafs.org/8987 Tested-by: BuildBot Reviewed-by: Marc Dionne Reviewed-by: Stephan Wiesand Reviewed-by: Derrick Brashear (cherry picked from commit 7d8b636d9493f3c470c1bbffb4a566060b21d98b) Change-Id: Iac819b281a26bbd508805541c80e6f1f281a19f9 Reviewed-on: http://gerrit.openafs.org/9363 Reviewed-by: Derrick Brashear Tested-by: BuildBot Reviewed-by: Paul Smeddle Reviewed-by: Andrew Deason Reviewed-by: Stephan Wiesand --- src/afsd/afs.rc.linux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afsd/afs.rc.linux b/src/afsd/afs.rc.linux index 0833c18ac..4df45a11d 100644 --- a/src/afsd/afs.rc.linux +++ b/src/afsd/afs.rc.linux @@ -82,7 +82,7 @@ is_on() { } on_network() { - ADDRS=`LANG=C ifconfig -a | grep 'inet addr' | grep -v 127.0.0.1 | wc -l` + ADDRS=`LANG=C ifconfig -a | grep 'inet ' | grep -v 127.0.0.1 | wc -l` if [ "$ADDRS" = "" ]; then echo afs: No interfaces with IP address 1>&2 return 1 -- 2.39.5