Skip to content

Commit

Permalink
Merge pull request #20712 from maribu/dist/tools/tapsetup/doas
Browse files Browse the repository at this point in the history
dist/tools/tapsetup: make compatible with doas
  • Loading branch information
maribu authored May 30, 2024
2 parents ea3d4c8 + d05d33f commit 230df5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dist/tools/tapsetup/tapsetup
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 230df5f

Please sign in to comment.