SOURCES: chkconfig-more_readable.patch - -more_readable.patch is b...
twittner
twittner at pld-linux.org
Sat Oct 22 15:47:28 CEST 2005
Author: twittner Date: Sat Oct 22 13:47:28 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- -more_readable.patch is back (updated for 1.3.20)
---- Files affected:
SOURCES:
chkconfig-more_readable.patch (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SOURCES/chkconfig-more_readable.patch
diff -u SOURCES/chkconfig-more_readable.patch:1.3 SOURCES/chkconfig-more_readable.patch:1.4
--- SOURCES/chkconfig-more_readable.patch:1.3 Thu Aug 4 22:57:59 2005
+++ SOURCES/chkconfig-more_readable.patch Sat Oct 22 15:47:23 2005
@@ -1,29 +1,30 @@
-diff -Nur b.chkconfig-1.2.24h/chkconfig.c n.chkconfig-1.2.24h/chkconfig.c
---- b.chkconfig-1.2.24h/chkconfig.c 2005-08-04 20:31:03.145936000 +0200
-+++ n.chkconfig-1.2.24h/chkconfig.c 2005-08-04 22:29:48.719684984 +0200
-@@ -106,6 +106,7 @@
+--- chkconfig-1.3.20/chkconfig.c~ 2005-10-22 15:39:22.000000000 +0200
++++ chkconfig-1.3.20/chkconfig.c 2005-10-22 15:43:32.000000000 +0200
+@@ -187,6 +187,7 @@
int rc;
int i;
struct service s;
+ char *on, *off;
- if ((rc = readServiceInfo(name, &s, 0))) {
- if (!forgiving)
-@@ -115,10 +116,13 @@
+ rc = readServiceInfo(name, &s, 0);
+
+@@ -207,13 +208,17 @@
+ }
printf("%-15s", s.name);
-
-- for (i = 0; i <= conf.maxlevel; i++) {
-- printf("\t%d:%s", i, isOn(s.name, i) ? _("on") : _("off"));
-- }
-- printf("\n");
++
+ on = getenv("CHKCONFIG_ON");
+ off = getenv("CHKCONFIG_OFF");
-+
-+ for (i = 0; i <= conf.maxlevel; i++)
++
+ if (s.type == TYPE_XINETD) {
+- printf("\t%s\n", s.levels ? _("on") : _("off"));
++ printf("\t%s\n", s.levels ? on ? on : _("on") : off ? off : _("off"));
+ return 0;
+ }
+
+ for (i = 0; i < 7; i++) {
+- printf("\t%d:%s", i, isOn(s.name, i) ? _("on") : _("off"));
+ printf("\t%d:%s", i, isOn(s.name, i) ? on ? on : _("on") : off ? off : _("off"));
-+
-+ printf("\n");
+ }
+ printf("\n");
- return 0;
- }
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/chkconfig-more_readable.patch?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list