plan9/rc/bin/setrtc

5 lines
124 B
Plaintext
Raw Permalink Normal View History

2014-02-08 11:19:48 +04:00
#!/bin/rc
# setrtc - set real-time clock to current system time
if (test -e '#r/rtc')
awk '{print $1}' /dev/time >'#r/rtc'