summaryrefslogtreecommitdiffstats
path: root/meta-webserver/recipes-webadmin/webmin/files/init-exclude.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-webserver/recipes-webadmin/webmin/files/init-exclude.patch')
-rw-r--r--meta-webserver/recipes-webadmin/webmin/files/init-exclude.patch35
1 files changed, 23 insertions, 12 deletions
diff --git a/meta-webserver/recipes-webadmin/webmin/files/init-exclude.patch b/meta-webserver/recipes-webadmin/webmin/files/init-exclude.patch
index 135492d713..5563227d55 100644
--- a/meta-webserver/recipes-webadmin/webmin/files/init-exclude.patch
+++ b/meta-webserver/recipes-webadmin/webmin/files/init-exclude.patch
@@ -5,9 +5,17 @@
5# Upstream-status: Pending 5# Upstream-status: Pending
6# 6#
7# Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> 7# Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
8--- webmin-1.570.orig/init/index.cgi 8# Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
9+++ webmin-1.570/init/index.cgi 9---
10@@ -48,19 +48,20 @@ elsif ($init_mode eq "init" && $access{' 10 init/index.cgi | 27 ++++++++++++++-------------
11 init/init-lib.pl | 5 +++--
12 2 files changed, 17 insertions(+), 15 deletions(-)
13
14diff --git a/init/index.cgi b/init/index.cgi
15index d48b793..30dafd4 100755
16--- a/init/index.cgi
17+++ b/init/index.cgi
18@@ -45,19 +45,20 @@ elsif ($init_mode eq "init" && $access{'bootup'}) {
11 : "$config{'init_dir'}/$ac[0]"); 19 : "$config{'init_dir'}/$ac[0]");
12 } 20 }
13 @runlevels = &list_runlevels(); 21 @runlevels = &list_runlevels();
@@ -41,11 +49,11 @@
41 49
42 # For each action, look at /etc/rc*.d/* files to see if it is 50 # For each action, look at /etc/rc*.d/* files to see if it is
43 # started at boot 51 # started at boot
44Index: webmin-1.570/init/init-lib.pl 52diff --git a/init/init-lib.pl b/init/init-lib.pl
45=================================================================== 53index ead21ed..b41794b 100755
46--- webmin-1.570.orig/init/init-lib.pl 54--- a/init/init-lib.pl
47+++ webmin-1.570/init/init-lib.pl 55+++ b/init/init-lib.pl
48@@ -108,15 +108,17 @@ List boot time action names from init.d, 56@@ -119,8 +119,9 @@ List boot time action names from init.d, such as httpd and cron.
49 =cut 57 =cut
50 sub list_actions 58 sub list_actions
51 { 59 {
@@ -56,12 +64,15 @@ Index: webmin-1.570/init/init-lib.pl
56 opendir(DIR, $dir); 64 opendir(DIR, $dir);
57 foreach $f (sort { lc($a) cmp lc($b) } readdir(DIR)) { 65 foreach $f (sort { lc($a) cmp lc($b) } readdir(DIR)) {
58 if ($f eq "." || $f eq ".." || $f =~ /\.bak$/ || $f eq "functions" || 66 if ($f eq "." || $f eq ".." || $f =~ /\.bak$/ || $f eq "functions" ||
59 $f eq "core" || $f eq "README" || $f eq "rc" || $f eq "rcS" || 67@@ -128,7 +129,7 @@ foreach $f (sort { lc($a) cmp lc($b) } readdir(DIR)) {
60 -d "$dir/$f" || $f =~ /\.swp$/ || $f eq "skeleton" || 68 -d "$dir/$f" || $f =~ /\.swp$/ || $f eq "skeleton" ||
61 $f =~ /\.lock$/ || $f =~ /\.dpkg-(old|dist)$/ || 69 $f =~ /\.lock$/ || $f =~ /\.dpkg-(old|dist)$/ ||
62- $f =~ /^\.depend\./ || $f eq '.legacy-bootordering') { next; } 70 $f =~ /^\.depend\./ || $f eq '.legacy-bootordering' ||
63+ $f =~ /^\.depend\./ || $f eq '.legacy-bootordering' || 71- $f =~ /^mandrake/) { next; }
64+ grep {$_ eq $f} @exclude ) { next; } 72+ $f =~ /^mandrake/ || grep {$_ eq $f} @exclude ) { next; }
65 if (@stbuf = stat("$dir/$f")) { 73 if (@stbuf = stat("$dir/$f")) {
66 push(@rv, "$f $stbuf[1]"); 74 push(@rv, "$f $stbuf[1]");
67 } 75 }
76--
772.0.0
78