/[pxelator]/lib/PXElator/server.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/PXElator/server.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 67 by dpavlin, Thu Jul 30 21:31:30 2009 UTC revision 134 by dpavlin, Tue Aug 4 13:18:36 2009 UTC
# Line 2  package server; Line 2  package server;
2    
3  use warnings;  use warnings;
4  use strict;  use strict;
5  use File::Slurp;  
6    use Module::Refresh qw//;
7    sub x_refresh { Module::Refresh->refresh };
8    
9  our $ip      = '172.16.10.1';  our $ip      = '172.16.10.1';
10  our $netmask = '255.255.255.0';  our $netmask = '255.255.255.0';
11    
12  our ( $ip_from, $ip_to ) = ( 10, 100 );  our ( $ip_from, $ip_to ) = ( 10, 100 );
13    
14  our $base_dir = '/home/dpavlin/llin/pxelator';  our $base_dir = '/srv/pxelator';
15    
16    use config;
17    
18  our $debug = 0;  our $debug;
19  sub debug {  sub debug { $debug = config::shared('debug', @_) || 0 }
         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;  
 }  
20    
21  warn "loaded";  warn "loaded";
22    
23    1;

Legend:
Removed from v.67  
changed lines
  Added in v.134

  ViewVC Help
Powered by ViewVC 1.1.26