#!/bin/sh
set -eu

# Read the same shell configuration as the SysV init script.
[ ! -r /etc/default/wide-dhcpv6-relay ] || . /etc/default/wide-dhcpv6-relay
set --
case "${VERBOSE:-0}" in
    1) set -- -d ;;
    2) set -- -D ;;
esac
# Interface names are whitespace-separated, never shell patterns.
set -f
exec /usr/sbin/dhcp6relay -f "$@" $INTERFACES
