Rev | Line | |
---|
[5881] | 1 | #!/usr/bin/perl -w
|
---|
[4746] | 2 | #
|
---|
| 3 | # Variable file
|
---|
| 4 |
|
---|
[5721] | 5 | $NG = 0;
|
---|
| 6 |
|
---|
[4746] | 7 | #debugging variable
|
---|
| 8 | $debug=0;
|
---|
| 9 |
|
---|
| 10 | #author credits
|
---|
| 11 | $author="feb 2003 jasper\@WirelessLeiden.NL \| maart 2005 rick\@WirelessLeiden.NL";
|
---|
| 12 |
|
---|
| 13 | #filelist
|
---|
| 14 | @filelist = ();
|
---|
| 15 | $filelist[0]="dhcpd.conf";
|
---|
[5721] | 16 | $filelist[1]="rc.node.local";
|
---|
| 17 | $filelist[2]="resolv.conf";
|
---|
| 18 | $filelist[3]="named.conf";
|
---|
| 19 | $filelist[4]="txtconfig";
|
---|
| 20 | $filelist[5]="authorized_keys";
|
---|
[4746] | 21 |
|
---|
[5230] | 22 | #Ignore this node diretories
|
---|
| 23 | %removefromnodelist = (
|
---|
| 24 | 'retired' => 'YES',
|
---|
| 25 | 'obsolete' => 'YES',
|
---|
| 26 | );
|
---|
| 27 |
|
---|
[5881] | 28 | #(inter)net env
|
---|
| 29 | if( defined $ENV{'SERVER_NAME'} ) {
|
---|
| 30 | $hostname=$ENV{'SERVER_NAME'};
|
---|
| 31 | }
|
---|
| 32 | else {
|
---|
| 33 | $hostname=`hostname`;
|
---|
| 34 | };
|
---|
[4746] | 35 |
|
---|
[5881] | 36 | chomp($hostname);
|
---|
| 37 | $cgi_dir="http://$hostname/freebsd/6.0";
|
---|
| 38 | $source="$cgi_dir/g_list.pl";
|
---|
[4746] | 39 |
|
---|
[5881] | 40 | #path variablen
|
---|
| 41 | $home="/usr/local/www/wlconfig.wirelessleiden.nl";
|
---|
| 42 | $ndir="$home/nodes";
|
---|
| 43 | $toolfile="$home/freebsd/6.0/wleiden.pl";
|
---|
| 44 |
|
---|
| 45 |
|
---|
| 46 | #exec vars
|
---|
| 47 | $svn="/usr/local/bin/svn";
|
---|
| 48 | $wicontrol='/usr/sbin/wicontrol';
|
---|
| 49 |
|
---|
[4746] | 50 | #naming vars
|
---|
| 51 | $configfile="wleiden.conf";
|
---|
| 52 |
|
---|
| 53 | #module IP.pm
|
---|
[5721] | 54 | $IP_pmPath="$home/tools/IP.pm";
|
---|
[4746] | 55 |
|
---|
| 56 | #dnsheader.conf
|
---|
[5721] | 57 | $dnsheader_confPath="$home/dns/dnsheader.conf";
|
---|
[4746] | 58 |
|
---|
| 59 |
|
---|
| 60 | ## ssh key variablen ##
|
---|
| 61 | #global ssh_keys
|
---|
[5721] | 62 | $global_keyPath="$home/nodes/global_keys";
|
---|
[4746] | 63 | #node specific
|
---|
| 64 | $ssh_file='ssh_key'
|
---|
| 65 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.