Commit 76fdef3e authored by Mike Hibler's avatar Mike Hibler

more Ubuntu stuff

parent c1cff09b
......@@ -14,7 +14,8 @@ require 'ctime.pl';
#
my $DUMPDATES = "/etc/dumpdates";
my @DBFILES = ();
my @SYSVARDIRS = ("lib/dhcp", "lib/dhcp3", "spool/clientmqueue", "log/audit");
my @SYSVARDIRS = ("lib/dhcp", "lib/dhcp3", "spool/clientmqueue",
"log/audit", "log/account", "log/mysql", "log/ntpstats");
my @VARDIRS = ("logs", "db", "jails", "boot", "lock");
my @SOCKETS = ("/dev/log", "/var/run/acpid.socket");
my $FSTAB = "/etc/fstab";
......@@ -26,6 +27,7 @@ my $NTPDRIFT = "/etc/ntp/drift";
my $SFSUSERS = "/etc/sfs/sfs_users";
my $SFSHOSTKEY = "/etc/sfs/sfs_host_key";
my $VARACCTDIR = "/var/account";
my $IFTAB = "/etc/iftab";
#
# Dead wood in $BINDIR
......@@ -222,6 +224,15 @@ if (-f $MAILFILE) {
die("Could not unlink $MAILFILE: $!");
}
#
# Remove the iftab file (maps ifaces to mac addrs and renames ifaces according
# to the map -- screws us up).
#
if ( -f $IFTAB ) {
unlink($IFTAB);
print "Removed $IFTAB.\n";
}
#
# Just removing the drift file results in no drift being tracked,
# so set it to zero instead. Not ideal, but at least the clock will
......
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