2020-11-10 01:04:20 +02:00
|
|
|
#!/bin/sh
|
|
|
|
if [ "$1" == "on" ]; then
|
2021-04-06 06:56:58 +03:00
|
|
|
cmd="c P2P"
|
2020-11-10 01:04:20 +02:00
|
|
|
elif [ "$1" == "off" ]; then
|
|
|
|
cmd="d"
|
|
|
|
elif [ "$1" == "status" ]; then
|
2021-04-06 06:56:58 +03:00
|
|
|
cmd="status"
|
2020-11-10 01:04:20 +02:00
|
|
|
else
|
|
|
|
echo "Please pass an argument: on, off, status"
|
|
|
|
exit
|
|
|
|
fi
|
2021-04-06 06:56:58 +03:00
|
|
|
nordvpn $cmd
|