#!/usr/bin/execlineb -P
# dhclient in foreground (-d), matching debian/sv/dhclient.

envfile -I /etc/s6-rc/config/dhclient.conf
envfile -I /etc/s6-rc/config/dhclient.interfaces
importas -sCuD "" INTERFACES INTERFACES

ifelse { test -n "${INTERFACES}" } {
	fdmove -c 2 1
	exec /usr/sbin/dhclient -d ${INTERFACES}
}
s6-pause
