1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 23:11:19 +01:00

Merge pull request #20712 from maribu/dist/tools/tapsetup/doas

dist/tools/tapsetup: make compatible with doas
This commit is contained in:
Marian Buschsieweke 2024-05-30 10:37:29 +00:00 committed by GitHub
commit 230df5fe3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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