#!/bin/sh

# sleep for 12 hours (we run this at reboot, so suppose the least busy hour will be 12 hour after big activity such as reboot)
sleep 43200

while [ 1 ] ; do
	# cleanup just in case if the scan is still running
	killall scanpartitions
	
	# run the scan iteration in backround
	/bin/scanpartitions &
	
	#sleep for one day in parallel, so we can start exactly the same time next day
	sleep 86400
done

