projects
/
pxelator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18bec40
)
extract server ip from ifconfig output
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 27 Jul 2009 11:46:10 +0000
(11:46 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 27 Jul 2009 11:46:10 +0000
(11:46 +0000)
config.pl
patch
|
blob
|
history
diff --git
a/config.pl
b/config.pl
index
e391477
..
0fde565
100644
(file)
--- a/
config.pl
+++ b/
config.pl
@@
-2,6
+2,9
@@
$server_ip = '10.0.0.100';
#$server_ip = '172.25.25.1';
+$server_ip = `/sbin/ifconfig`;
+$server_ip =~ s/^.+?addr:([\d\.]+).*$/$1/gs;
+
$next_file = 'tinycore/tftp.gpxe';
$next_file = "http://$server_ip/pxelator/tinycore/http.gpxe";