first commit
This commit is contained in:
12
sv-vpn-call.sh
Executable file
12
sv-vpn-call.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
INTERFAZ=$1
|
||||
output=$(sudo /home/arthur/scripts/sv-vpn.sh $INTERFAZ)
|
||||
echo $output
|
||||
if [ "$output" = 'Activando' ]; then
|
||||
FLAG=$(sh /home/arthur/scripts/get_flag.sh)
|
||||
notify-send "VPN Activada $FLAG" "Interfaz $INTERFAZ activada "
|
||||
else
|
||||
FLAG=$(sh /home/arthur/scripts/get_flag.sh)
|
||||
notify-send "VPN Desactivada $FLAG" "Interfaz $INTERFAZ Desactivada "
|
||||
fi
|
||||
Reference in New Issue
Block a user