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