summaryrefslogtreecommitdiff
path: root/runlevels/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'runlevels/Makefile')
-rw-r--r--runlevels/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/runlevels/Makefile b/runlevels/Makefile
index ac3796e..2b25a35 100644
--- a/runlevels/Makefile
+++ b/runlevels/Makefile
@@ -1,5 +1,5 @@
-BOOT= bootmisc fsck hostname localmount network \
- root staticroute swap swapfiles sysctl urandom ${BOOT-${OS}}
+BOOT= bootmisc fsck hostname localmount \
+ root swap swapfiles sysctl urandom ${BOOT-${OS}}
DEFAULT= local netmount
SHUTDOWN= savecache ${SHUTDOWN-${OS}}
SYSINIT= ${SYSINIT-${OS}}
@@ -10,6 +10,16 @@ BOOTDIR= ${LEVELDIR}/boot
DEFAULTDIR= ${LEVELDIR}/default
SHUTDOWNDIR= ${LEVELDIR}/shutdown
+ifeq (${MKNET},)
+BOOT-FreeBSD += net.lo0
+BOOT-Linux += net.lo
+BOOT-NetBSD += net.lo0
+endif
+
+ifeq (${MKNET},newnet)
+BOOT+= network staticroute
+endif
+
INITDIR= ../init.d
MK= ../mk