#!/bin/sh                                                                       
                                                                                
_FUNCTIONS=/etc/rc.d/functions                                                  
[ -f ${_FUNCTIONS} ] && . ${_FUNCTIONS}                                         

echo "Run DK" 
DKLITE_PATH="/test/DKLite"
RUN_TAG="$DKLITE_PATH/duokantag"

#/etc/init.d/framework stop

if [ ! -f $RUN_TAG ]
then
		mntroot rw
		mkdir -p $DKLITE_PATH
		touch $RUN_TAG
		echo ebook > $RUN_TAG
		sync
		mntroot ro		
fi

/etc/rc5.d/rundk.sh `cat $RUN_TAG` &
