Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | # Remove "start on boot" option from webmin configuration, as |
| 2 | # end-users should not need to configure this from the web interface |
| 3 | # |
| 4 | # Upstream-status: Inappropriate |
| 5 | # |
| 6 | # Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> |
| 7 | --- webmin-1.570.orig/webmin/index.cgi |
| 8 | +++ webmin-1.570/webmin/index.cgi |
| 9 | @@ -79,20 +79,6 @@ print &ui_buttons_start(); |
| 10 | my %miniserv; |
| 11 | &get_miniserv_config(\%miniserv); |
| 12 | |
| 13 | -if (&foreign_check("init")) { |
| 14 | - &foreign_require("init"); |
| 15 | - my $starting = &init::action_status("webmin"); |
| 16 | - print &ui_buttons_row("bootup.cgi", |
| 17 | - $text{'index_boot'}, |
| 18 | - $text{'index_bootmsg'}. |
| 19 | - ($miniserv{'inetd'} ? "<b>$text{'index_inetd'}</b>" : |
| 20 | - !$ENV{'MINISERV_CONFIG'} ? "<b>$text{'index_apache'}</b>" : ""), |
| 21 | - &ui_hidden("starting", $starting), |
| 22 | - &ui_radio("boot", $starting == 2 ? 1 : 0, |
| 23 | - [ [ 1, $text{'yes'} ], |
| 24 | - [ 0, $text{'no'} ] ])); |
| 25 | - } |
| 26 | - |
| 27 | # Restart Webmin |
| 28 | if (!$miniserv{'inetd'} && $ENV{'MINISERV_CONFIG'}) { |
| 29 | print &ui_buttons_row("restart.cgi", |