#! /bin/sh

start() {
	set -a
	mkdir -p /userdata/cfg
	if [ ! -f /userdata/cfg/wpa_supplicant.conf ];then
		cp /etc/wpa_supplicant.conf /userdata/cfg/
	fi
	amixer -c 0 cset numid=33 0
	amixer -c 0 cset numid=34 0
	export LV_DRIVERS_SET_PLANE=CURSOR
	modetest -M rockchip -aw 68:zpos:1
	modetest -M rockchip -aw 69:zpos:1
	ulimit -n 1024
	set +a
	touch /tmp/.lv_warmup
	rk_demo &
}

case "$1" in
	start)
	start
	;;
	*)
	echo "Usage: $0 {start}"
	exit 1
esac

exit $?
