--- lib/PXElator/server.pm 2009/07/30 21:31:30 67 +++ lib/PXElator/server.pm 2009/07/31 13:16:11 74 @@ -2,7 +2,6 @@ use warnings; use strict; -use File::Slurp; our $ip = '172.16.10.1'; our $netmask = '255.255.255.0'; @@ -11,16 +10,9 @@ our $base_dir = '/home/dpavlin/llin/pxelator'; +use config; + our $debug = 0; -sub debug { - my $new = shift; - my $path ="$base_dir/conf/debug"; - if ( defined $new ) { - write_file $path, $debug = $new; - } else { - $debug = read_file $path if -e $path; - } - return $debug; -} +sub debug { $debug = config::shared('debug', @_) } warn "loaded";