summaryrefslogtreecommitdiffstats
path: root/drakpxelinux.pl
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-09-15 15:35:53 +0000
committerOlivier Blin <oblin@mandriva.org>2005-09-15 15:35:53 +0000
commit3204458d3c306b4e3b1a448c0b8ef83e8ca36c2c (patch)
treeb559bc6871f61511c9693e99d3816a3fd626e2b0 /drakpxelinux.pl
parent37b8057ba5a1c28ad227b5012010f81be1e43cab (diff)
downloaddrakpxelinux-3204458d3c306b4e3b1a448c0b8ef83e8ca36c2c.tar
drakpxelinux-3204458d3c306b4e3b1a448c0b8ef83e8ca36c2c.tar.gz
drakpxelinux-3204458d3c306b4e3b1a448c0b8ef83e8ca36c2c.tar.bz2
drakpxelinux-3204458d3c306b4e3b1a448c0b8ef83e8ca36c2c.tar.xz
drakpxelinux-3204458d3c306b4e3b1a448c0b8ef83e8ca36c2c.zip
add deploy_server directly in $o hash, not at end of file (or else it will be ignored)
Diffstat (limited to 'drakpxelinux.pl')
-rw-r--r--drakpxelinux.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/drakpxelinux.pl b/drakpxelinux.pl
index 343e00a..a9c5d8e 100644
--- a/drakpxelinux.pl
+++ b/drakpxelinux.pl
@@ -520,7 +520,7 @@ sub edit_box_item {
cp_af($file, $auto_cfg);
substInFile {
s/^.*deploy_server.*\n//g;
- $_ .= "\$o->{deploy_server} = \"$ip_address:3710\";\n" if eof;
+ $_ = "\t'deploy_server' => \"$ip_address:3710\",\n" . $_ if /^\s*};\s*$/;
} $auto_cfg;
$data->set_text("http://$ip_address:3712/auto_" . $profile . "_" . $label . ".pl");
}