diff options
Diffstat (limited to 'runlevels')
-rw-r--r-- | runlevels/Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/runlevels/Makefile b/runlevels/Makefile index 682d6e15..df6b53a2 100644 --- a/runlevels/Makefile +++ b/runlevels/Makefile @@ -3,6 +3,7 @@ include ../mk/net.mk BOOT= bootmisc fsck hostname localmount loopback \ root swap swapfiles sysctl urandom ${BOOT-${OS}} DEFAULT= local netmount +NONETWORK= local SHUTDOWN= savecache ${SHUTDOWN-${OS}} SYSINIT= ${SYSINIT-${OS}} @@ -10,6 +11,7 @@ LEVELDIR= ${DESTDIR}/${SYSCONFDIR}/runlevels SYSINITDIR= ${LEVELDIR}/sysinit BOOTDIR= ${LEVELDIR}/boot DEFAULTDIR= ${LEVELDIR}/default +NONETWORKDIR= ${LEVELDIR}/nonetwork SHUTDOWNDIR= ${LEVELDIR}/shutdown ifeq (${MKNET},yes) @@ -72,6 +74,14 @@ install: fi; \ ln -snf ${INITDIR}/"$$x" ${DEFAULTDIR}/"$$x" || exit $$?; done \ fi + if ! test -d "${NONETWORKDIR}"; then \ + ${INSTALL} -d ${NONETWORKDIR} || exit $$?; \ + for x in ${NONETWORK}; do \ + if test "${MKPREFIX}" = yes; then \ + grep -q "keyword .*-prefix" ${INITFILES}/"$$x" && continue; \ + fi; \ + ln -snf ${INITDIR}/"$$x" ${NONETWORKDIR}/"$$x" || exit $$?; done \ + fi if ! test -d "${SHUTDOWNDIR}"; then \ ${INSTALL} -d ${SHUTDOWNDIR} || exit $$?; \ for x in ${SHUTDOWN}; do \ |