From 46bc6e545a17e77202aaf01ec0cd8d5a46567525 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 25 Aug 2015 08:08:24 -0300 Subject: Move main pfSense content to src/ --- src/usr/local/sbin/ppp-uptime.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 src/usr/local/sbin/ppp-uptime.sh (limited to 'src/usr/local/sbin/ppp-uptime.sh') diff --git a/src/usr/local/sbin/ppp-uptime.sh b/src/usr/local/sbin/ppp-uptime.sh new file mode 100755 index 0000000..d7a8441 --- /dev/null +++ b/src/usr/local/sbin/ppp-uptime.sh @@ -0,0 +1,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`)) \ No newline at end of file -- cgit v1.1