toolkit/func/core/pkg_systemd/20-systemd-journald.sh
2021-07-04 23:50:25 -07:00

9 lines
255 B
Bash
Executable file

#!/bin/bash
r_log "systemd" "Testing journalctl with a teststring"
currentTime=$(date +'%T')
testString=01092deadbeef9915710501deadbeef6
echo "${testString}" > /dev/kmsg
journalctl --since "${currentTime}" | grep -q "${testString}"
r_checkExitStatus $?