dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles # fast
git clone https://src.adamsgaard.dk/dotfiles.git # slow
Log | Files | Refs | README | LICENSE Back to index

commit ba8e263a26b508cc8107fcb54412ab1b1712de2a
parent 1abf3e332ba78e387122ccede40e072038b1158f
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 20 Jan 2021 09:46:21 +0100

auvpn: switch between doas(1)/sudo(1)

Diffstat:
M.local/bin/auvpn | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/.local/bin/auvpn b/.local/bin/auvpn @@ -12,4 +12,10 @@ fi # openconnect -u au217756@uni.au.dk --passwd-on-stdin \ # https://remote1.au.dk/st" -doas openconnect -u au217756@uni.au.dk https://remote1.au.dk/st +if [ -x /usr/bin/doas ]; then + doas=doas +else + doas=sudo +fi + +$doas openconnect -u au217756@uni.au.dk https://remote1.au.dk/st