aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runlevels/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/runlevels/Makefile b/runlevels/Makefile
index dbfb59ca..8d16e6d6 100644
--- a/runlevels/Makefile
+++ b/runlevels/Makefile
@@ -13,6 +13,7 @@ BOOTDIR= ${LEVELDIR}/boot
DEFAULTDIR= ${LEVELDIR}/default
NONETWORKDIR= ${LEVELDIR}/nonetwork
SHUTDOWNDIR= ${LEVELDIR}/shutdown
+SINGLEDIR= ${LEVELDIR}/single
ifeq (${MKNET},yes)
BOOT+= network staticroute
@@ -90,6 +91,9 @@ install:
fi; \
ln -snf ${INITDIR}/"$$x" ${SHUTDOWNDIR}/"$$x" || exit $$?; done \
fi
+ if ! test -d "${SINGLEDIR}"; then \
+ ${INSTALL} -d ${SINGLEDIR} || exit $$?; \
+ fi
check test::