fish: functions/vpn: Invoke wg-quick with doas

This commit is contained in:
Sanchayan Maity 2024-04-24 11:29:53 +05:30
parent fdafe80f6c
commit 41f25229dc
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -1,8 +1,8 @@
function vpn
set -l var (ls /sys/class/net | grep vpn)
if test -z "$var"
wg-quick up vpn
doas wg-quick up vpn
else
wg-quick down vpn
doas wg-quick down vpn
end
end