xref: /plan9-contrib/rc/bin/setrtc (revision 58da3067adcdccaaa043d0bfde28ba83b7ced07d)
1#!/bin/rc
2# setrtc - set real-time clock to current system time
3if (test -e '#r/rtc')
4	awk '{print $1}' /dev/time >'#r/rtc'
5