add debug watch option to wakelock
This commit is contained in:
@@ -78,8 +78,12 @@ unlock() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
debug() {
|
debug() {
|
||||||
tr " " "\n" < /sys/power/wake_lock | grep .
|
if [ "$1" = "watch" ]; then
|
||||||
tail -f "$XDG_STATE_HOME"/sxmo.log | grep "${0##*/}"
|
watch -n1 cat /sys/power/wake_lock
|
||||||
|
else
|
||||||
|
tr " " "\n" < /sys/power/wake_lock | grep .
|
||||||
|
tail -f "$XDG_STATE_HOME"/sxmo.log | grep "${0##*/}"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd="$1"
|
cmd="$1"
|
||||||
|
Reference in New Issue
Block a user