[Fai-commit] r4124 - trunk/bin
fai-commit at lists.alioth.debian.org
fai-commit at lists.alioth.debian.org
Wed Nov 1 12:42:34 CET 2006
Author: lange
Date: 2006-11-01 12:42:34 +0100 (Wed, 01 Nov 2006)
New Revision: 4124
Modified:
trunk/bin/fai-chboot
Log:
test needs full path name,
undef is an unary operator
Modified: trunk/bin/fai-chboot
===================================================================
--- trunk/bin/fai-chboot 2006-11-01 11:35:45 UTC (rev 4123)
+++ trunk/bin/fai-chboot 2006-11-01 11:42:34 UTC (rev 4124)
@@ -28,7 +28,7 @@
#*********************************************************************
# variable needed: $nfsroot
-$version="version 3.1.3 25-sep-2006";
+$version="version 3.2 1-nov-2006";
use Socket;
use Net::hostent;
@@ -82,7 +82,8 @@
if (/^(default|[0-9A-F]+)$/) { push @enabled, $_ ; next};
if (/\.tmpl$/) { push @templates, $_ ; next};
if (/\.disable$/) {
- if (-f (split /\./)[0]) {
+ my $filename=(split (/\./,$_))[0];
+ if (-f "$pxedir/$filename") {
warn "Skipping $_ as disabled host because also enabled.\n" if $verbose;
} else {
push @disabled, $_;
@@ -118,7 +119,8 @@
# map all entries (in HEX) to hostname or IP
foreach $hex (@allfiles) {
- undef $host,$type;
+ undef $host;
+ undef $type;
if ($hex =~ /^default(.disable)?$/) {
$host = $hex;
More information about the Fai-commit
mailing list