diff options
| author | Jeff Carr <[email protected]> | 2025-10-09 01:29:52 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-09 01:29:52 -0500 |
| commit | 97fb72d696512cbe53502918ea059b4ab6fc9755 (patch) | |
| tree | 880654594d4078f45082a0fbcb6c9b75edc4595e /doRdate.go | |
| parent | d78f8181ea0f09a9faadfebab99377f8b3f1b61c (diff) | |
make 'linux' subcommand
Diffstat (limited to 'doRdate.go')
| -rw-r--r-- | doRdate.go | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/doRdate.go b/doRdate.go deleted file mode 100644 index 7896f1c..0000000 --- a/doRdate.go +++ /dev/null @@ -1,24 +0,0 @@ -// 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/debian" - "go.wit.com/lib/fhelp" -) - -func doRdate() { - checkSuperuser() - - if _, err := fhelp.CheckCmd("rdate"); err != nil { - debian.AptInstallOrExit("rdate") - } - - if _, err := fhelp.CheckCmd("hwclock"); err != nil { - debian.AptInstallOrExit("util-linux-extra") - } - - exitOnError([]string{"rdate", "rdate.grid.wit.com"}) - exitOnError([]string{"hwclock", "-w"}) -} |
