summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2013-05-01 18:20:01 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2013-05-01 18:20:01 -0500
commit70628a875ba5ccf9fd3c9d702bc5c7471762270b (patch)
treeec007069a60b704ffd091b54acbd7f5bbf848117
parent10a4385e409b48d9aa60590c140d4ca6485a7a72 (diff)
downloadopenrc-70628a875ba5ccf9fd3c9d702bc5c7471762270b.tar.gz
openrc-70628a875ba5ccf9fd3c9d702bc5c7471762270b.tar.bz2
openrc-70628a875ba5ccf9fd3c9d702bc5c7471762270b.tar.xz
fix the build for non-selinux systems
The symlinks should be created only if MKSELINUX=yes, not if it just has a value.
-rw-r--r--src/rc/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/Makefile b/src/rc/Makefile
index fc6b9aa..dcd8e5a 100644
--- a/src/rc/Makefile
+++ b/src/rc/Makefile
@@ -51,7 +51,7 @@ include ${MK}/pam.mk
# $3 is the path where the links are created
define make-links
for x in $(1); do \
- if test -n "${MKSELINUX}"; then \
+ if [ "${MKSELINUX}" = yes ]; then \
printf '#!/bin/sh\nexec ${2} --applet %s "$$@"\n' $$x >${3}/$$x; \
chmod ${BINMODE} ${3}/$$x; \
else \