Plan 9 from Bell Labs’s /n/sources/plan9/rc/bin/setrtc
#!/bin/rc # setrtc - set real-time clock to current system time if (test -e '#r/rtc') awk '{print $1}' /dev/time >'#r/rtc'