diff options
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) { |
