void-packages/srcpkgs/kea/files/kea-dhcp4/run

6 lines
181 B
Bash

#!/bin/sh
[ -r conf ] && . ./conf
[ -n "$WAIT_IFACE" ] && [ -z "$(ip -f inet address show "$WAIT_IFACE")" ] && exit 1
mkdir -p /run/kea
exec kea-dhcp4 ${OPTS:=-c /etc/kea/kea.conf}