notification.sh: Accept notification content from STDIN
This commit is contained in:
parent
3e09ce6589
commit
e5bf85eed9
1 changed files with 6 additions and 4 deletions
|
@ -3,11 +3,13 @@
|
||||||
source "$(dirname $0)/.env"
|
source "$(dirname $0)/.env"
|
||||||
|
|
||||||
|
|
||||||
#FIFO=/tmp/mapid
|
#LINE1='Backup finished!'
|
||||||
LINE1='Backup finished!'
|
#LINE2=''
|
||||||
LINE2=''
|
[ -t /dev/stdin ] && printf "Line 1> "; read LINE1
|
||||||
|
[ -t /dev/stdin ] && printf "Line 2> "; read LINE2
|
||||||
LED_BLINK=".5s"
|
LED_BLINK=".5s"
|
||||||
DISPLAY_DURATION="4s"
|
#DISPLAY_DURATION="4s"
|
||||||
|
DISPLAY_DURATION="10s"
|
||||||
|
|
||||||
|
|
||||||
if [[ ! -e $FIFO ]]; then
|
if [[ ! -e $FIFO ]]; then
|
||||||
|
|
Loading…
Reference in a new issue