misc updates

This commit is contained in:
Rouven Seifert 2023-12-17 17:27:20 +01:00
parent 6a57013187
commit 1c9806cd0c
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
5 changed files with 22 additions and 21 deletions

View file

@ -50,7 +50,7 @@
source ${pkgs.agdsn-zsh-config}/etc/zsh/zshrc
function svpn() {
unit=$(systemctl list-unit-files | grep "openconnect\|wg-quick\|wireguard\|openvpn" | cut -d "." -f1 | fzf --preview 'systemctl status {}')
unit=$(systemctl list-unit-files | grep "openconnect\|wg-quick\|wireguard\|openvpn\|openfortivpn" | cut -d "." -f1 | fzf --preview 'systemctl status {}')
if [ $(systemctl is-active $unit) = "inactive" ]; then
systemctl start $unit
else