]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
LINUX: ifconfig's output has changed
authorChas Williams (CONTRACTOR) <chas@cmf.nrl.navy.mil>
Wed, 30 Jan 2013 03:54:00 +0000 (22:54 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Thu, 14 Mar 2013 08:47:19 +0000 (01:47 -0700)
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 <buildbot@rampaginggeek.com>
Reviewed-by: Marc Dionne <marc.c.dionne@gmail.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
(cherry picked from commit 7d8b636d9493f3c470c1bbffb4a566060b21d98b)

Change-Id: Iac819b281a26bbd508805541c80e6f1f281a19f9
Reviewed-on: http://gerrit.openafs.org/9363
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Paul Smeddle <paul.smeddle@gmail.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/afsd/afs.rc.linux

index 0833c18aca5e0ad27ab51bb7e6567039f3fa1fe2..4df45a11d1d096dcb9df34b5f12b2e5640880fe5 100644 (file)
@@ -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