home
/
code
/
khome.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Log dmesg errors and warnings
[khome.git]
/
home
/
.xlaunch.d
/
99-dmesg-notifier-warn
diff --git
a/home/.xlaunch.d/99-dmesg-notifier-warn
b/home/.xlaunch.d/99-dmesg-notifier-warn
index
a021734
..
f5409c2
100755
(executable)
--- a/
home/.xlaunch.d/99-dmesg-notifier-warn
+++ b/
home/.xlaunch.d/99-dmesg-notifier-warn
@@
-2,9
+2,14
@@
set -e
set -e
+DIR="$HOME/var/log/dmesg"
+FILE="$DIR/warning.log"
+
+mkdir -p "$DIR"
sleep 3 # wait for dunst to hopefully restart
sleep 3 # wait for dunst to hopefully restart
-sudo dmesg --follow --level=warn --since=now \
-| while read line
+sudo dmesg --follow --level=warn --since=now
--ctime
\
+| while read
-r
line
do
notify-send -u low 'dmesg warning' "$line"
do
notify-send -u low 'dmesg warning' "$line"
+ echo "$line" >> "$FILE"
done
done
This page took
0.025349 seconds
and
4
git commands to generate.