ppp-uptime.sh 145 Bytes
Newer Older
Ad Schellevis's avatar
Ad Schellevis committed
1 2
#!/bin/sh
#get ppp uptime from age of /tmp/{interface}up file
3
[ -f /tmp/$1up ] && /bin/echo $((`date -j +%s` - `/usr/bin/stat -f %m /tmp/$1up`))