summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-12-02 16:02:36 +0000
committerOlivier Blin <oblin@mandriva.org>2005-12-02 16:02:36 +0000
commit07d1389c2cd30cd6c4c71c5bf62556999aa7cc43 (patch)
treec9288324d86150fca023ecc228f03ef78cb3da2f
parentd263af6e6a2fc1c603249013250f9415da8c4491 (diff)
downloaddrakpxelinux-07d1389c2cd30cd6c4c71c5bf62556999aa7cc43.tar
drakpxelinux-07d1389c2cd30cd6c4c71c5bf62556999aa7cc43.tar.gz
drakpxelinux-07d1389c2cd30cd6c4c71c5bf62556999aa7cc43.tar.bz2
drakpxelinux-07d1389c2cd30cd6c4c71c5bf62556999aa7cc43.tar.xz
drakpxelinux-07d1389c2cd30cd6c4c71c5bf62556999aa7cc43.zip
write deploy_server key at beginning of $o declaration in auto_install file
-rw-r--r--drakpxelinux.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/drakpxelinux.pl b/drakpxelinux.pl
index a9c5d8e..595d1fd 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;
- $_ = "\t'deploy_server' => \"$ip_address:3710\",\n" . $_ if /^\s*};\s*$/;
+ $_ .= "\t'deploy_server' => \"$ip_address:3710\",\n" if /^\s*\$o\s*=\s*{$/;
} $auto_cfg;
$data->set_text("http://$ip_address:3712/auto_" . $profile . "_" . $label . ".pl");
}