diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
commit | 1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e (patch) | |
tree | a21a5fc103bb3bd65ecd85ed22be5228fc54e447 /meta-webserver/recipes-webadmin/webmin/files/remove-startup-option.patch | |
download | meta-openembedded-1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-webserver/recipes-webadmin/webmin/files/remove-startup-option.patch')
-rw-r--r-- | meta-webserver/recipes-webadmin/webmin/files/remove-startup-option.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-webserver/recipes-webadmin/webmin/files/remove-startup-option.patch b/meta-webserver/recipes-webadmin/webmin/files/remove-startup-option.patch new file mode 100644 index 000000000..8493af852 --- /dev/null +++ b/meta-webserver/recipes-webadmin/webmin/files/remove-startup-option.patch | |||
@@ -0,0 +1,29 @@ | |||
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", "init-lib.pl"); | ||
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", | ||