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-log-uptime.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 src/usr/local/sbin/ppp-log-uptime.sh (limited to 'src/usr/local/sbin/ppp-log-uptime.sh') diff --git a/src/usr/local/sbin/ppp-log-uptime.sh b/src/usr/local/sbin/ppp-log-uptime.sh new file mode 100755 index 0000000..6fd8def --- /dev/null +++ b/src/usr/local/sbin/ppp-log-uptime.sh @@ -0,0 +1,5 @@ +#!/bin/sh +#write the uptime in seconds to the persistent log in /conf/ +/etc/rc.conf_mount_rw +/bin/echo `date -j +%Y.%m.%d-%H:%M:%S` $1 >> /conf/$2.log +/etc/rc.conf_mount_ro -- cgit v1.1