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

Annotation of /config.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7 - (hide annotations)
Mon Jul 27 11:46:10 2009 UTC (14 years, 11 months ago) by dpavlin
File MIME type: text/plain
File size: 264 byte(s)
extract server ip from ifconfig output

1 dpavlin 3
2     $server_ip = '10.0.0.100';
3     #$server_ip = '172.25.25.1';
4    
5 dpavlin 7 $server_ip = `/sbin/ifconfig`;
6     $server_ip =~ s/^.+?addr:([\d\.]+).*$/$1/gs;
7    
8 dpavlin 4 $next_file = 'tinycore/tftp.gpxe';
9     $next_file = "http://$server_ip/pxelator/tinycore/http.gpxe";
10    
11 dpavlin 3 warn "server on $server_ip\n";

  ViewVC Help
Powered by ViewVC 1.1.26