summaryrefslogtreecommitdiff
path: root/doRdate.go
diff options
context:
space:
mode:
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"})
+}