mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 21:12:43 +00:00
By flushing the output, iio_event_monitor can be more useful to programs
chained along with it.
iio_event_monitor stk3310 | awk '/rising/{system("my_unlockscreen.sh")} /falling/{system("my_lockscreen.sh")}'
Without this flush, the above example would buffer a number of events,
then after a while run the lock/unlock scripts several times.
Signed-off-by: Zach DeCook <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>