#!/bin/sh
#
# system control
#

start() {
	printf "Starting SystemControl: "
	source /etc/property_set.sh
	mkdir -p /run/systemcontrol
	/usr/bin/systemcontrol >/dev/null 2>/dev/null &
    echo 0x10001 > /sys/class/graphics/fb0/free_scale_switch
    echo -1 > /sys/module/fb/parameters/osd_logo_index
	echo "OK"
}
stop() {
	printf "Stopping SystemControl: "
	killall systemcontrol
	echo "OK"
}
restart() {
	stop
	start
}

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

exit $?

