diff options
| author | Jeff Carr <[email protected]> | 2025-10-29 14:15:32 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-29 14:15:32 -0500 |
| commit | cc1a5a7acfd0360c49f5710f0d90765f8bad9f8a (patch) | |
| tree | 6d24f71014aaf601f3b906ad9227b318eaddf19a /doLinux.go | |
| parent | a84e367a58cc39612eea8ee2589abd42620eec02 (diff) | |
minorv0.1.55
Diffstat (limited to 'doLinux.go')
| -rw-r--r-- | doLinux.go | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -13,11 +13,18 @@ import ( // kernel logs only // journalctl -b -1 -k -func doUptime() { - checkSuperuser() +func doReboots() (string, error) { + // checkSuperuser() exitOnError([]string{"journalctl", "--list-boots"}) - exitOnError([]string{"journalctl", "-b", "-1"}) // the last boot log + return "reboots", nil +} + +func doDmesg() (string, error) { + // checkSuperuser() + + exitOnError([]string{"journalctl", "-b", "-0"}) // the current boot log + return "reboots", nil } func doRdate() (string, error) { |
