#!/bin/sh

set -eu

DEBUG=
case "${VERBOSE:-0}" in
    1) DEBUG=-d ;;
    2) DEBUG=-D ;;
esac

if [ -n "$DEBUG" ]; then
    exec /usr/sbin/dhcp6relay "$DEBUG" $INTERFACES
fi

exec /usr/sbin/dhcp6relay $INTERFACES
