[Fai-commit] r3372 - trunk/bin

fai-repository at svn.debian.org fai-repository at svn.debian.org
Wed Apr 5 15:56:49 UTC 2006


Author: lange
Date: 2006-04-05 15:56:49 +0000 (Wed, 05 Apr 2006)
New Revision: 3372

Modified:
   trunk/bin/fai-chboot
Log:
fix division by zero error


Modified: trunk/bin/fai-chboot
===================================================================
--- trunk/bin/fai-chboot	2006-04-05 15:52:35 UTC (rev 3371)
+++ trunk/bin/fai-chboot	2006-04-05 15:56:49 UTC (rev 3372)
@@ -28,7 +28,7 @@
 #*********************************************************************
 
 # variable needed: $nfsroot
-$version="version 2.1 31-march-2006";
+$version="version 2.1.1 5-april-2006";
 
 use Socket;
 use Net::hostent;
@@ -262,7 +262,7 @@
   my ($host) = shift;
   my ($ipadr,$hex) = host2hex($host);
 
-  -e $pxedir/$hex and print "$host ($hex) is already enabled\n" and return;
+  -e "$pxedir/$hex" and print "$host ($hex) is already enabled\n" and return;
   if (! -e "$pxedir/$hex.disable") {
     print "$host ($hex) is not disabled\n";
     return;




More information about the Fai-commit mailing list