/[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

Contents of /config.pl

Parent Directory Parent Directory | Revision Log Revision Log


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

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

  ViewVC Help
Powered by ViewVC 1.1.26