summaryrefslogtreecommitdiffstats
path: root/src/usr/local/sbin/ppp-uptime.sh
blob: d7a8441e1da702fde80f4712046c4e2d9922d36e (plain)
1
2
3
#!/bin/sh
#get ppp uptime from age of /tmp/{interface}up file
[ -f /tmp/$1up ] && /bin/echo $((`date -j +%s` - `/usr/bin/stat -f %m /tmp/$1up`))
OpenPOWER on IntegriCloud