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
9 rc = readServiceInfo(name, &s, 0);
14 printf("%-15s", s.name);
16 + on = getenv("CHKCONFIG_ON");
17 + off = getenv("CHKCONFIG_OFF");
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"));
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"));