summaryrefslogtreecommitdiff
path: root/doLinux.go
diff options
context:
space:
mode:
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) {