#!/bin/sh set -x # . /etc/init.d/functions PATH=/bin:/sbin:/usr/bin:/usr/sbin # First read /etc/profile test -f /etc/profile && . /etc/profile # # Starting a default application # START_PHOTOVIEWER_WITH_QMLSCENE=y if [ "${START_PHOTOVIEWER_WITH_QMLSCENE}" = "N" ]; then echo -n "Starting photoviewer: " qmlscene /usr/share/qt5/photoviewer/photoviewer.qml >/dev/null 2>&1 & check_status fi # # for AV Codec Midleware # - load firmware # ACM_CODEC=decoder ACM_CODEC_SYSFS=/sys/devices/platform/acm.0/codec if [ -e $ACM_CODEC_SYSFS ]; then if [ "${ACM_CODEC}" = "encoder" -o "${ACM_CODEC}" = "decoder" ]; then echo -n "load ${ACM_CODEC} firmware: " echo "${ACM_CODEC}" > $ACM_CODEC_SYSFS for i in 1 2 3 4 5; do sleep 1 grep "\[${ACM_CODEC}\]" $ACM_CODEC_SYSFS > /dev/null if [ $? -eq 0 ]; then break else false fi done check_status fi fi ip rule add from 192.168.1.4 table 100 prio 100 ip route add dev eth0 src 192.168.1.4 table 100 ip rule add from 192.168.1.5 table 200 prio 200 ip route add dev eth1 src 192.168.1.5 table 200 route del -net 192.168.1.0 netmask 255.255.255.0 dev eth0 route del -net 192.168.1.0 netmask 255.255.255.0 dev eth1 route add -net 192.168.1.2 netmask 255.255.255.255 dev eth0 route add -net 192.168.1.3 netmask 255.255.255.255 dev eth1 # for TSC-50 inputattach --always --daemon --baud 9600 --tsc /dev/ttySC0 export TSLIB_TSDEVICE=/dev/input/event1 export TSLIB_PLUGINDIR=/usr/lib/ts0 export TSLIB_CALIBFILE=/etc/config/pointercal export TSLIB_FBDEVICE=/dev/fb1 # for Demo export QT_QPA_EGLFS_DISPLAY=1 export QT_QPA_EGLFS_WIDTH=1024 export QT_QPA_EGLFS_HEIGHT=768 mount -t jffs2 /dev/mtdblock6 /mnt /mnt/DORAPro_1 -plugin tslib:/dev/input/event1 & /usr/bin/serial_ping 200 & export TZ=JST-9 hwclock --hctosys --localtime