13 lines
369 B
Bash
Executable File
13 lines
369 B
Bash
Executable File
#!/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
|