plan9fox/rc/bin/setrtc

5 lines
124 B
Plaintext
Raw Normal View History

#!/bin/rc
# setrtc - set real-time clock to current system time
if (test -e '#r/rtc')
awk '{print $1}' /dev/time >'#r/rtc'