fish: functions/vpn: Invoke wg-quick with doas
This commit is contained in:
parent
fdafe80f6c
commit
41f25229dc
1 changed files with 2 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
||||||
function vpn
|
function vpn
|
||||||
set -l var (ls /sys/class/net | grep vpn)
|
set -l var (ls /sys/class/net | grep vpn)
|
||||||
if test -z "$var"
|
if test -z "$var"
|
||||||
wg-quick up vpn
|
doas wg-quick up vpn
|
||||||
else
|
else
|
||||||
wg-quick down vpn
|
doas wg-quick down vpn
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue