forked from SimplesIP/pabx-app
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
322 B
9 lines
322 B
#!/bin/bash |
|
|
|
VPN=$(! [ -z "$(ifconfig | grep 'ppp')" ] && ifconfig ppp0 | grep "inet" | awk {'print $2'}) |
|
if ! [ -z "$VPN" ] ; then |
|
echo "Desativando interface existente: $VPN" |
|
for i in {10..1};do sleep 1 && echo -n "$i ";done |
|
echo "" |
|
ps aux | grep pppd | grep simplesip | awk {'print $2'} | xargs kill -9 |
|
fi
|
|
|