#!/bin/bash

. ${TOOLKIT}-functions.sh

# try to run system release dependend fixes
#
file=$(filepath run-fixes -x) && {
	echo "  run $file ..."
	$file
}

# relocate /var/spool/cron to etc (because this contains CONFIG DATAS,
# a spool directory is not the right place)
#
[ ! -L /var/spool/cron -a ! -d /etc/cron-spool ] && {
	echo "  relocating /var/spool/cron -> /etc/cron-spool"
	mv /var/spool/cron /etc/cron-spool			|| exit $?
	(cd /var/spool ; ln -s ../../etc/cron-spool cron)	|| exit $?
}

exit 0
