[Fai-commit] r3326 - trunk/conf
fai-repository at svn.debian.org
fai-repository at svn.debian.org
Mon Mar 27 13:45:40 UTC 2006
Author: lange
Date: 2006-03-27 13:45:40 +0000 (Mon, 27 Mar 2006)
New Revision: 3326
Modified:
trunk/conf/make-fai-nfsroot.conf
Log:
calculate subnet address depending on the server interface. ipcal is
also useful for calculating
Modified: trunk/conf/make-fai-nfsroot.conf
===================================================================
--- trunk/conf/make-fai-nfsroot.conf 2006-03-27 13:09:43 UTC (rev 3325)
+++ trunk/conf/make-fai-nfsroot.conf 2006-03-27 13:45:40 UTC (rev 3326)
@@ -31,8 +31,8 @@
FAI_BOOT="dhcp bootp"
# export $NFSROOT to this netgroup or this range of IP addresses
-# (eg. FAICLIENTS="192.168.1.0/24")
-FAICLIENTS=`hostname -i | sed -e 's/\(.*\)\.[0-9]*/\1.0\/24/' | tr -d ' '`
+# (eg. FAICLIENTS="192.168.1.0/24")
+FAICLIENTS=`ifconfig ${SERVERINTERFACE} | grep -w inet | cut -d : -f 2 | cut -d ' ' -f 1 | sed -e 's/\(.*\)\.[0-9]*/\1.0\/24/' | tr -d ' '`
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# following lines should be read only for most of you
More information about the Fai-commit
mailing list