From 3e8bef724c2173c4ecf749e0c03d9131abd094bb Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 3 Oct 2025 03:52:26 -0500 Subject: add rdate --- doRdate.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 doRdate.go (limited to 'doRdate.go') diff --git a/doRdate.go b/doRdate.go new file mode 100644 index 0000000..244b7c1 --- /dev/null +++ b/doRdate.go @@ -0,0 +1,11 @@ +// Copyright 2017-2025 WIT.COM Inc. All rights reserved. +// Use of this source code is governed by the GPL 3.0 + +package main + +func doRdate() { + checkSuperuser() + + exitOnError([]string{"rdate", "rdate.grid.wit.com"}) + exitOnError([]string{"hwclock", "-w"}) +} -- cgit v1.2.3