aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sitesummary-collector.cgi6
1 files changed, 4 insertions, 2 deletions
diff --git a/sitesummary-collector.cgi b/sitesummary-collector.cgi
index 51dd193..bf98d81 100644
--- a/sitesummary-collector.cgi
+++ b/sitesummary-collector.cgi
@@ -102,9 +102,11 @@ sub process_entry {
$eth0mac = $1 if (m/eth0\s+Link encap:Ethernet HWaddr (\S+)/);
}
close (IFCONFIG);
- print STDERR "MAC: $eth0mac\n";
+ #print STDERR "MAC: $eth0mac\n";
my $newdir = "$basedir/entries/ether-$eth0mac";
- unlink $newdir if ( -d $newdir );
+
+ `rm -r $newdir` if ( -d $newdir );
+
rename $dirname, $newdir || die;
}