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

6 lines
195 B
Bash
Executable File

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