Skip to content

Commit

Permalink
step 1
Browse files Browse the repository at this point in the history
  • Loading branch information
openshwprojects committed Jan 10, 2025
1 parent 8e5ae60 commit 3bb373d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/httpserver/http_fns.c
Original file line number Diff line number Diff line change
Expand Up @@ -1646,7 +1646,15 @@ int http_fn_startup_command(http_request_t* request) {
CFG_Save_IfThereArePendingChanges();
}

#if ENABLE_OBK_SCRIPTING
poststr(request, "<form action=\"/startup_command\">");
poststr(request, "<label for='data'>Startup command</label><br>");
poststr(request, "<textarea id='data' name='data' rows='15' cols='40'>");
poststr(request, CFG_GetShortStartupCommand());
poststr(request, "</textarea><br>");
#else
add_label_text_field(request, "Startup command", "data", CFG_GetShortStartupCommand(), "<form action=\"/startup_command\">");
#endif
poststr(request, "<input type='hidden' name='startup_cmd' value='1'>");
poststr(request, SUBMIT_AND_END_FORM);

Expand Down

0 comments on commit 3bb373d

Please sign in to comment.