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:
commit
230df5fe3b
4
dist/tools/tapsetup/tapsetup
vendored
4
dist/tools/tapsetup/tapsetup
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user