From 60d6847de553970a80207fde6bd46f5f3696e049 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 10 Jul 2012 01:59:28 -0500 Subject: add the MKNET variable to select a network stack The MKNET variable can be used to select the network stack you want to build and install with OpenRC. The current default is the gentoo "oldnet" stack. If you want to install the OpenRC newnet stack, use MKNET=newnet on the make command line. --- runlevels/Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'runlevels/Makefile') diff --git a/runlevels/Makefile b/runlevels/Makefile index ac3796e0..2b25a350 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 -- cgit v1.2.3