Commit 80bffc81 authored by Mac Newbold's avatar Mac Newbold

Fixed blank line in power.conf bug.

parent 10849998
......@@ -56,9 +56,11 @@ if ( -e "/usr/testbed/etc/power.conf") {
}
my @line = ();
while ( <CONF> ) {
if ( ! /^\#(.*)/ ) {
if ( ! /^(\#.*)*$/ ) { #if its not blank or commented with #
chop;
#print "Got '$_':\t";
@line = split(/\t/);
#print "Split to ",join("*",@line),"\n";
$IPList{$line[0]}= $line[1];
$OutletList{$line[0]}= '-'.$line[2];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment