#! /bin/sh

# system_update       init.d script to system_update the device

set -e

case "$1" in
  start)
		if [ ! -e /cache ];then
			/bin/mkdir /cache
			/bin/mount -t yaffs2 /dev/mtdblock11 /cache
		fi
		echo -n "Starting dua_update:"
		start-stop-daemon -S -a /usr/bin/dua_update
		reboot
		echo -n "done"
		;;
  stop)
        ;;
  restart)
        ;;
  *)
        echo "Usage shutdown { start | stop | restart}" >&2
        exit 1
        ;;
esac

exit 0
