// Copyright 2017-2025 WIT.COM Inc. All rights reserved. // Use of this source code is governed by the GPL 3.0 package main import "go.wit.com/lib/fhelp" func doRdate() { checkSuperuser() if _, err := fhelp.CheckCmd("rdate"); err != nil { aptInstallOrExit("rdate") } if _, err := fhelp.CheckCmd("hwclock"); err != nil { aptInstallOrExit("util-linux-extra") } exitOnError([]string{"rdate", "rdate.grid.wit.com"}) exitOnError([]string{"hwclock", "-w"}) }