wmcore: remove inline keywords.
[dockapps.git] / wmppp.app / example-scripts / wmppp-stop
blob145f29367da60a6a566d235ace3c6383d47067eb
1 #!/bin/bash
2 DEVICE=ppp0
4 if [ -r /var/run/$DEVICE.pid ]; then
5 kill -INT `cat /var/run/$DEVICE.pid`
7 if [ ! "$?" = "0" ]; then
8 rm -f /var/run/$DEVICE.pid
9 echo >/dev/console "ERROR: Removed stale pid file"
10 exit 1
13 echo >/dev/console "PPP link to $DEVICE terminated."
14 exit 0
17 echo >/dev/console "ERROR: PPP link not active on $DEVICE"
18 exit 1