Skip to content

Commit 1880443

Browse files
authored
Merge pull request #310 from mekanix/feature/dhclient
Switch between dhclient and dhcpcd
2 parents 395db90 + 00072a1 commit 1880443

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mk/base-jail.mk

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
BASE_WORKDIR != reggae get-config BASE_WORKDIR
22
PKG_PROXY != reggae get-config PKG_PROXY
3+
DHCP ?= dhclient
34
MKJAIL_OPTIONS =
45

56
.if exists(${EXTRA_FSTAB})
@@ -75,6 +76,10 @@ setup:
7576
.endif
7677
.if !exists(${BASE_WORKDIR}/${SERVICE})
7778
@sudo env PRESTART="${PRESTART}" POSTSTART="${POSTSTART}" PRESTOP="${PRESTOP}" POSTSTOP="${POSTSTOP}" OS_VERSION="${VERSION}" reggae mkjail ${MKJAIL_OPTIONS} ${SERVICE}
79+
.if ${DHCP} == "dhcpcd"
80+
@sudo chroot ${BASE_WORKDIR}/${SERVICE} pkg install -y dhcpcd
81+
@echo dhclient_program="/usr/local/sbin/dhcpcd" | sudo tee -a ${BASE_WORKDIR}/${SERVICE}/etc/rc.conf >/dev/null
82+
.endif
7883
.endif
7984
.if ${DEVEL_MODE} == "YES"
8085
-@sudo mount -t nullfs ${PWD} ${BASE_WORKDIR}/${SERVICE}/usr/src >/dev/null 2>&1

0 commit comments

Comments
 (0)