summaryrefslogtreecommitdiff
path: root/src/systemctl/systemctl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-01-04 22:32:31 +0100
committerLennart Poettering <lennart@poettering.net>2013-01-04 23:26:21 +0100
commit77e68fa2f0bd018bab2621a31919bfaa6a6b0a35 (patch)
treef58c09e7e82c2be782ee7f172d6e0306cd90cc46 /src/systemctl/systemctl.c
parent32f992a514949b42550b97cadb3bb5499b54ca49 (diff)
systemctl: enable chkconfig compat only if chkconfig is found rather than based on distro
Diffstat (limited to 'src/systemctl/systemctl.c')
-rw-r--r--src/systemctl/systemctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 086872c696..b71d5de30a 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -3436,7 +3436,7 @@ finish:
static int enable_sysv_units(char **args) {
int r = 0;
-#if defined (HAVE_SYSV_COMPAT) && (defined(TARGET_FEDORA) || defined(TARGET_MANDRIVA) || defined(TARGET_SUSE) || defined(TARGET_ALTLINUX) || defined(TARGET_MAGEIA))
+#if defined(HAVE_SYSV_COMPAT) && defined(HAVE_CHKCONFIG)
const char *verb = args[0];
unsigned f = 1, t = 1;
LookupPaths paths;