]> git.pld-linux.org Git - packages/chkconfig.git/blame - chkconfig-more_readable.patch
- sr@Latn -> sr@latin, rel. 0.5
[packages/chkconfig.git] / chkconfig-more_readable.patch
CommitLineData
bf447601 1--- chkconfig-1.3.20/chkconfig.c~ 2005-10-22 15:39:22.000000000 +0200
2+++ chkconfig-1.3.20/chkconfig.c 2005-10-22 15:43:32.000000000 +0200
3@@ -187,6 +187,7 @@
9a130169 4 int rc;
5 int i;
6 struct service s;
7+ char *on, *off;
8
bf447601 9 rc = readServiceInfo(name, &s, 0);
10
11@@ -207,13 +208,17 @@
12 }
9a130169 13
9e68d7e2 14 printf("%-15s", s.name);
bf447601 15+
9a130169 16+ on = getenv("CHKCONFIG_ON");
17+ off = getenv("CHKCONFIG_OFF");
bf447601 18+
19 if (s.type == TYPE_XINETD) {
20- printf("\t%s\n", s.levels ? _("on") : _("off"));
21+ printf("\t%s\n", s.levels ? on ? on : _("on") : off ? off : _("off"));
22 return 0;
23 }
24
25 for (i = 0; i < 7; i++) {
26- printf("\t%d:%s", i, isOn(s.name, i) ? _("on") : _("off"));
9a130169 27+ printf("\t%d:%s", i, isOn(s.name, i) ? on ? on : _("on") : off ? off : _("off"));
bf447601 28 }
29 printf("\n");
9e68d7e2 30
This page took 0.074083 seconds and 4 git commands to generate.