diff options
| author | Jeff Carr <[email protected]> | 2025-10-07 08:00:05 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-07 08:00:05 -0500 |
| commit | 85761945ce11bd2417b1889b210f3d582f1ec211 (patch) | |
| tree | df7f3451f7a6d65a6f1ad9119e2a5c8e47b07f59 /doRdate.go | |
| parent | cb63f983305808beb2c108b4bad25c2cbc8ca926 (diff) | |
early work on a debian library
Diffstat (limited to 'doRdate.go')
| -rw-r--r-- | doRdate.go | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -3,17 +3,20 @@ package main -import "go.wit.com/lib/fhelp" +import ( + "go.wit.com/lib/debian" + "go.wit.com/lib/fhelp" +) func doRdate() { checkSuperuser() if _, err := fhelp.CheckCmd("rdate"); err != nil { - aptInstallOrExit("rdate") + debian.AptInstallOrExit("rdate") } if _, err := fhelp.CheckCmd("hwclock"); err != nil { - aptInstallOrExit("util-linux-extra") + debian.AptInstallOrExit("util-linux-extra") } exitOnError([]string{"rdate", "rdate.grid.wit.com"}) |
