summaryrefslogtreecommitdiff
path: root/doRdate.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-03 03:52:26 -0500
committerJeff Carr <[email protected]>2025-10-03 03:52:26 -0500
commit3e8bef724c2173c4ecf749e0c03d9131abd094bb (patch)
treec94e81706a78970bbef16054172b944f7f8bf84f /doRdate.go
parent62abca26fd749a3fcb7838479e90bef7db747d0f (diff)
add rdate
Diffstat (limited to 'doRdate.go')
-rw-r--r--doRdate.go11
1 files changed, 11 insertions, 0 deletions
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"})
+}