projects
/
pxelator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ddcac1
)
create pxelinux.cfg if it doesn't exist
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 30 Jul 2009 11:47:16 +0000
(11:47 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 30 Jul 2009 11:47:16 +0000
(11:47 +0000)
lib/PXElator/pxe.pm
patch
|
blob
|
history
diff --git
a/lib/PXElator/pxe.pm
b/lib/PXElator/pxe.pm
index
b582c51
..
e963cb4
100644
(file)
--- a/
lib/PXElator/pxe.pm
+++ b/
lib/PXElator/pxe.pm
@@
-19,7
+19,9
@@
$url = "tftp://$server::ip/"; # fallback to tftp
my $squash = tftpd::path('debian-live/*squashfs');
-my $config = "$tftpd::dir/pxelinux.cfg/default";
+my $config = "$tftpd::dir/pxelinux.cfg";
+mkdir $config unless -d $config;
+$config .= '/default';
write_file $config, qq{