# Calculate chmod=0755
#!/sbin/runscript

depend() {
	need localmount
}

stop() {
	# Sync boot scratch
	if [[ -e /boot ]] && [[ -e /mnt/scratch/boot ]]
	then
		ebegin "Synchronize /boot for scratch mode"
		rsync -a -x --delete /boot/ /mnt/scratch/boot/ && eend 0 || eend 1
	fi
}
