dotfiles add

This commit is contained in:
Maksim Totmin
2022-05-08 17:02:59 +07:00
parent 49a51849e0
commit 3bfa324d00
26 changed files with 1241 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/bin/bash
WGON(){
echo "VPN"
WGS='true'
}
WGOFF(){
# echo "Off"
WGS='false'
}
ifconfig n2400 &>/dev/null && WGON ||WGOFF
if [ "$1" = '-toggle' ]; then
if [ "$WGS" = 'true' ]; then
sudo wg-quick down n2400 &>/dev/null
else
sudo wg-quick up n2400 &>/dev/null
fi
fi
exit 0