How to autostart application with busysbox (System V)

1.Create file /etc/init.d/demo with following content :

#!/bin/sh
# launch demo application
#
export QWS_MOUSE_PROTO=tslib:/dev/input/event1
export TSLIB_TSDEVICE=/dev/input/event1
DEMO_PATH=/usr/bin/qwt-6.0.1
DEMO_EXEC=oscilloscope
DEMO_OPTS=-qws -display "transformed:rot180:1"

case "$1" in
        start)
                echo 0 > /sys/class/graphics/fbcon/cursor_blink
                echo 0 > /sys/class/graphics/fb0/blank
                echo 1 >  /sys/class/backlight/backlight@1/brightness
                /bin/mount -o remount,rw /
                /usr/bin/ts_calibrate
                /bin/mount -o remount,ro /
                ${DEMO_PATH}/${DEMO_EXEC} ${DEMO_OPTS} &
                ;;
        stop)
                killall ${DEMO_EXEC}
                ;;
        *)
                echo "Usage: $0 {start|stop}"
                exit 1
                ;;
esac
exit 0

2. make /etc/init.de/demo executable.

chmod a+x /etc/init.d/demo

3. create symlink S99demo in /etc/rc.d/ that points to the file /etc/init.d/demo:

cd /etc/rc.d
ln -s ../init.d/demo S99demo

Disclaimer
TQ-Systems GmbH provides the Board Support Packages (BSP) free of charge. The software included in the shipment has been configured individually for the starter kits. The software is only intended to evaluate the module. The use of the Board Support Packages (BSP) is only allowed within the scope of functionality described by TQ-Systems GmbH. TQ-Systems GmbH does not accept any liability for all further changes of the Board Support Package and for any damage resulting from its use.