]> git.pld-linux.org Git - packages/chkconfig.git/blob - chkconfig-more_readable.patch
- sr@Latn -> sr@latin, rel. 0.5
[packages/chkconfig.git] / chkconfig-more_readable.patch
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 @@
4      int rc;
5      int i;
6      struct service s;
7 +       char *on, *off;
8  
9      rc = readServiceInfo(name, &s, 0);
10      
11 @@ -207,13 +208,17 @@
12      }
13  
14      printf("%-15s", s.name);
15 +
16 +       on = getenv("CHKCONFIG_ON");
17 +       off = getenv("CHKCONFIG_OFF");
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"));
27 +               printf("\t%d:%s", i, isOn(s.name, i) ? on ? on : _("on") : off ? off : _("off"));
28      }
29      printf("\n");
30  
This page took 0.025176 seconds and 3 git commands to generate.