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