summaryrefslogtreecommitdiffstats
path: root/usr/local/sbin/ppp-log-uptime.sh
blob: 6fd8def9dca8ed392279200e5e77942cfacb4e3a (plain)
1
2
3
4
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
OpenPOWER on IntegriCloud