refs
This commit is contained in:
parent
2b4f1559ff
commit
5780ddac2f
@ -116,9 +116,7 @@ mcd() {
|
|||||||
## sudo usermod -aG wireguard $USER
|
## sudo usermod -aG wireguard $USER
|
||||||
vpn() {
|
vpn() {
|
||||||
local STATUS SERVICE CONFIG CONFIGFILE
|
local STATUS SERVICE CONFIG CONFIGFILE
|
||||||
CONFIG="$1"
|
CONFIG="${1:-wg0}"
|
||||||
|
|
||||||
test -z "$CONFIG" && CONFIG="wg0"
|
|
||||||
|
|
||||||
CONFIGFILE="/etc/wireguard/$CONFIG.conf"
|
CONFIGFILE="/etc/wireguard/$CONFIG.conf"
|
||||||
|
|
||||||
|
|||||||
2
install
2
install
@ -32,7 +32,7 @@ declare -A TARGETS=(
|
|||||||
|
|
||||||
_die() {
|
_die() {
|
||||||
echo "$0: $1" >&2
|
echo "$0: $1" >&2
|
||||||
exit "$2"
|
exit $2
|
||||||
}
|
}
|
||||||
|
|
||||||
test "$0" = "./install" || _die "Error: Please, run this file from root of dotfiles, like this './install.sh TARGET" 1
|
test "$0" = "./install" || _die "Error: Please, run this file from root of dotfiles, like this './install.sh TARGET" 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user