start on started LunaSysMgr

console output

pre-start script
	# only run if there is media sync'ed data to export
    if [ ! -d /media/internal/iPod_Control ]
	then
		stop
	fi
	
end script

script

# wait until the LunaSysMgr is fully booted before running
while [ ! -e /tmp/suspend_active ]; do
    sleep 10
done

luna-send -i -n 1  palm://com.palm.activitymanager/create '{"start":true, "type":{"priority":"lowest"}, "activity":{"name":"mediasyncexporter", "description": "export media sync data to standard media files", "callback": {"method": "palm://com.palm.mediasyncexporter/export", "params": {}}}}'
end script