summaryrefslogtreecommitdiff
path: root/doLinux.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-29 14:15:32 -0500
committerJeff Carr <[email protected]>2025-10-29 14:15:32 -0500
commitcc1a5a7acfd0360c49f5710f0d90765f8bad9f8a (patch)
tree6d24f71014aaf601f3b906ad9227b318eaddf19a /doLinux.go
parenta84e367a58cc39612eea8ee2589abd42620eec02 (diff)
minorv0.1.55
Diffstat (limited to 'doLinux.go')
-rw-r--r--doLinux.go13
1 files changed, 10 insertions, 3 deletions
diff --git a/doLinux.go b/doLinux.go
index 66ce02b..ff318c5 100644
--- a/doLinux.go
+++ b/doLinux.go
@@ -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) {