19 lines
352 B
Bash
Executable File
19 lines
352 B
Bash
Executable File
#!/bin/sh
|
|
|
|
PROGRAM=/usr/bin/fbv
|
|
SPLASHFILE="/etc/stk1000splash.jpg"
|
|
|
|
echo -n "Splash image:"
|
|
if [ ! -x "${PROGRAM}" -o ! -f "${SPLASHFILE}" ]; then
|
|
echo " missing"
|
|
exit 1
|
|
fi
|
|
|
|
${PROGRAM} ${SPLASHFILE} < /dev/null > /dev/null 2>/dev/null &
|
|
if [ $? -eq 0 ]; then
|
|
echo " loaded"
|
|
kill `pidof ${PROGRAM}` > /dev/null 2> /dev/null
|
|
else
|
|
echo " failed"
|
|
fi
|