From 07d1389c2cd30cd6c4c71c5bf62556999aa7cc43 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 2 Dec 2005 16:02:36 +0000 Subject: write deploy_server key at beginning of $o declaration in auto_install file --- drakpxelinux.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drakpxelinux.pl') 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"); } -- cgit v1.2.1