summaryrefslogtreecommitdiffstats
path: root/build/rootfs/bin/load_fbgui.sh
blob: 255365df4fa0e93202fa48fd18ef3be76bc50c07 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

export QWS_MOUSE_PROTO=IntelliMouse:/dev/mice
export QWS_KEYBOARD=TTY:/dev/tty0
fbgui_options=""
[ $(grep -c debug /proc/cmdline) -ge 1  ] && fbgui_options="$fbgui_options -D 1"
trigger=$(cat /etc/fbgui.conf | grep file_trigger | cut -d '=' -f2)
[ ! -f $trigger ] && /bin/fbgui $fbgui_options 2>/dev/null
[ -f "/tmp/debuglevel" ] && . /tmp/debuglevel
if [ $DEBUGLEVEL -ge 1 ]
then
   logfile=$(cat /etc/fbgui.conf | grep log_file | cut -d '=' -f2)
   echo "fbgui debug mode skipped kexec execution."
   echo "Consult $logfile for details."
   /bin/sh
fi