plan9fox/rc/bin/setrtc
2011-03-30 18:29:07 +00:00

4 lines
124 B
Bash
Executable file

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