From: Chas Williams (CONTRACTOR) Date: Wed, 30 Jan 2013 03:54:00 +0000 (-0500) Subject: LINUX: ifconfig's output has changed X-Git-Tag: upstream/1.8.0_pre1^2~1572 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=7d8b636d9493f3c470c1bbffb4a566060b21d98b;p=packages%2Fo%2Fopenafs.git 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). Change-Id: I9224d0eb4dd77e248c8f8eed966fa26ec7dda08c Reviewed-on: http://gerrit.openafs.org/8987 Tested-by: BuildBot Reviewed-by: Marc Dionne Reviewed-by: Stephan Wiesand Reviewed-by: Derrick Brashear --- 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