[Fai-commit] r3976 - trunk/bin

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Mon Sep 18 15:48:55 UTC 2006


Author: lange
Date: 2006-09-18 15:48:54 +0000 (Mon, 18 Sep 2006)
New Revision: 3976

Modified:
   trunk/bin/fai-setup
Log:
only use first interface


Modified: trunk/bin/fai-setup
===================================================================
--- trunk/bin/fai-setup	2006-09-18 11:16:23 UTC (rev 3975)
+++ trunk/bin/fai-setup	2006-09-18 15:48:54 UTC (rev 3976)
@@ -156,8 +156,8 @@
     test -f /etc/init.d/nfs-kernel-server && nfsserver=nfs-kernel-server
     test -f /etc/init.d/nfs-user-server && nfsserver=nfs-user-server
 
-    addr=$(LC_ALL=C ifconfig $SERVERINTERFACE | grep -v 127.0.0.1 | perl -ne '/addr:([\d.]+)/ && print"$1\n"')
-    mask=$(LC_ALL=C ifconfig $SERVERINTERFACE | grep -v 127.0.0.1 | perl -ne '/Mask:([\d.]+)/ && print"$1\n"')
+    addr=$(LC_ALL=C ifconfig $SERVERINTERFACE | grep -v 127.0.0.1 | perl -ne '/addr:([\d.]+)/ && print"$1\n"'|head -1)
+    mask=$(LC_ALL=C ifconfig $SERVERINTERFACE | grep -v 127.0.0.1 | perl -ne '/Mask:([\d.]+)/ && print"$1\n"'|head -1)
     add_export_line $FAI_CONFIGDIR  "$addr/$mask(async,ro)"
     add_export_line $NFSROOT  "$addr/$mask(async,ro,no_root_squash)"
     if [ -z "$nfsserver" ]; then




More information about the Fai-commit mailing list