Hi all,

just a small patch to src/afsd/afs.rc.linux.
It will make sure that ifconfig will speak English regardless what your
$LANG is.

Thomas.
-- 
-----------------------------------------------------------------------
Thomas M�ller, TU Chemnitz, Universit�tsrechenzentrum, D-09107 Chemnitz
mail: [EMAIL PROTECTED]
-----------------------------------------------------------------------
diff -Naurw openafs.orig/src/afsd/afs.rc.linux openafs/src/afsd/afs.rc.linux
--- openafs.orig/src/afsd/afs.rc.linux  Tue Nov 13 11:34:39 2001
+++ openafs/src/afsd/afs.rc.linux       Tue Nov 13 11:36:17 2001
@@ -77,7 +77,7 @@
 }
 
 on_network() {
-    ADDRS=`ifconfig -a | grep 'inet addr' | grep -v 127.0.0.1 | wc -l`
+    ADDRS=`LANG=C ifconfig -a | grep 'inet addr' | grep -v 127.0.0.1 | wc -l`
     if [ "$ADDRS" = "" ]; then
        echo afs: No interfaces with IP address 1>&2
        return 1

Reply via email to