summaryrefslogtreecommitdiffstats
path: root/target/device/Atmel/atstk100x/target_skeleton/etc/init.d/S99splash
blob: 47001adb21a5d99587ea374c38cae32e02980a05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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 &
if [ $? -eq 0 ]; then
	echo "loaded"
else
	echo "failed"
fi