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.
10 lines
259 B
10 lines
259 B
2 years ago
|
#!/bin/bash
|
||
|
trap "" 2 20
|
||
|
|
||
|
VPN=$(! [ -z "$(ifconfig | grep 'ppp')" ] && ifconfig ppp0 | grep "inet" | awk {'print $2'})
|
||
|
if [ -z "$VPN" ] ; then
|
||
|
#ps aux | grep pppd | grep simplesip | awk {'print $2'} | xargs kill -9
|
||
|
#sleep 1
|
||
|
pppd call simplesip
|
||
|
fi
|