![]() |
![]() ![]() ![]() pppcheck |
#!/bin/bash # pppcheck.sh - Danny Sauer (last updated Mar 6, 1999) # check to see if the ppp0 device is active and pppd is running # re-establish connection if not # intended to be called from cron every couple of minutes # if ! ((/sbin/ifconfig | grep "ppp0" 1> /dev/null 2>&1 ) || (/bin/ps ax|grep "pppd"| grep -v "grep" 1> /dev/null 2>&1) ) then /etc/suseppp/scripts/ppp-up generic fi | |
[Append to This Answer] | |
2000-Jul-12 12:58am |
Previous: |
![]() |
Next: |
![]() |
|
This FAQ administered by sauer@cloudmaster.com |