3 # fbsplash-control-functions.bash
5 # Send commands to fbsplash-controld (if running)
7 local FIFO
="/run/fbsplash-controld.fifo" fd ret
=0
8 [[ -p $FIFO ]] ||
return 0
9 # Open an extra file descriptor to avoid blocking
10 exec {fd
}<>"$FIFO" ||
return 1
12 # Also send splashd commands thru the controld FIFO to maintain order
13 in comms
) printf 'comm %s\n' "${@:2}" >"$FIFO" || ret
=1
14 ;; * ) echo "$*" >"$FIFO" || ret
=1