diff --git a/dist/tools/tapsetup/tapsetup b/dist/tools/tapsetup/tapsetup index 6903544acb..0ee6b7446b 100755 --- a/dist/tools/tapsetup/tapsetup +++ b/dist/tools/tapsetup/tapsetup @@ -13,6 +13,10 @@ BRIDGE_ROUTES="" DEFAULT_PREFIX_LEN=128 UPLINK="" +# doas uses the DOAS_USER variable instead of SUDO_USER. For compatibility with +# both, we populate SUDO_USER with DOAS_USER, if SUDO_USER is not existing. +: "${SUDO_USER:="$DOAS_USER"}" + usage() { echo "usage: ${PROGRAM} [arguments]" >&2 echo "" >&2