diff options
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"}) -} |
