Commit 90792dfb authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add field in nodecontrol page to change the startup command.

parent 6f029ec0
......@@ -49,10 +49,11 @@ if (! $isadmin) {
$insert_result = mysql_db_query($TBDBNAME,
"UPDATE nodes SET ".
"def_boot_image_id=\"$def_boot_image_id\", ".
"def_boot_path=\"$def_boot_path\", ".
"def_boot_path=\"$def_boot_path\", ".
"def_boot_cmd_line=\"$def_boot_cmd_line\", ".
"next_boot_path=\"$next_boot_path\", ".
"next_boot_cmd_line=\"$next_boot_cmd_line\" ".
"next_boot_cmd_line=\"$next_boot_cmd_line\", ".
"startupcmd='$startupcmd' ".
"WHERE node_id=\"$node_id\"");
if (! $insert_result) {
......
......@@ -62,6 +62,7 @@ $def_boot_path = $row[def_boot_path];
$def_boot_cmd_line = $row[def_boot_cmd_line];
$next_boot_path = $row[next_boot_path];
$next_boot_cmd_line = $row[next_boot_cmd_line];
$startupcmd = $row[startupcmd];
echo "<table border=2 cellpadding=0 cellspacing=2
align='center'>\n";
......@@ -129,6 +130,14 @@ echo "<tr>
</tr>\n";
echo "<tr>
<td>Startup Command:</td>
<td class=\"left\">
<input type=\"text\" name=\"startupcmd\" size=\"60\"
value=\"$startupcmd\"></td>
</tr>\n";
echo "<tr>
<td colspan=2 align=center>
<b><input type=\"submit\" value=\"Submit\"></b>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment