Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | status() { |
2 | if type splash-write >/dev/null 2>&1; then | ||||
3 | (TMPDIR="/mnt/.splash" EXQUISITE_IPC="$TMPDIR/exquisite" splash-write "$1" || true) & | ||||
4 | fi | ||||
5 | } | ||||
6 | |||||
7 | status_position() { | ||||
8 | status "PROGRESS $1" | ||||
9 | } | ||||
10 | |||||
11 | status_title() { | ||||
12 | status "TITLE $1" | ||||
13 | } | ||||
14 | |||||
15 | status_text() { | ||||
16 | if test -n "$1"; then | ||||
17 | status "MSG $1" | ||||
18 | else | ||||
19 | status "CLEAR" | ||||
20 | fi | ||||
21 | } | ||||
22 | |||||
23 | status_pulse() { | ||||
24 | status "PULSATE" | ||||
25 | } | ||||
26 | |||||
27 | status_tick() { | ||||
28 | status "TICK" | ||||
29 | } |