#! @PERL@
-# Copyright (c) 2008, 2009, 2010 Zmanda, Inc. All Rights Reserved.
+# Copyright (c) 2008-2012 Zmanda, Inc. All Rights Reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as published
use Amanda::Util qw( :constants );
use Amanda::Paths;
use Amanda::Constants;
+eval 'use Amanda::Disklist;'; # can fail if compiled for client only
use Getopt::Long;
# Implementation note: this application is a bit funny, because it does not
Amanda::Util::finish_setup($RUNNING_AS_ANY);
+if ($execute_where != $CONFIG_INIT_CLIENT) {
+ my $diskfile = Amanda::Config::config_dir_relative(getconf($CNF_DISKFILE));
+ $cfgerr_level = Amanda::Disklist::read_disklist('filename' => $diskfile);
+# if ($cfgerr_level >= $CFGERR_ERRORS) {
+# die "Errors processing disklist";
+# }
+}
+
conf_param($parameter, $opt_list);
Amanda::Util::finish_application();