From 3204458d3c306b4e3b1a448c0b8ef83e8ca36c2c Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 15 Sep 2005 15:35:53 +0000 Subject: add deploy_server directly in $o hash, not at end of file (or else it will be ignored) --- drakpxelinux.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- cgit v1.2.1