# hdw - linux cron package # # author: hackbard@hackdaworld.dyndns.org # # [V] 3.0pl1 # [S] 3-1 # [D] cron3.0pl1.tar.gz ftp://metalab.unc.edu/pub/Linux/system/daemons/cron/ post_install() { # crontab file cat > $root/etc/crontab << EOS # hdw - linux /etc/crontab # SHELL=/bin/sh PATH=/bin:/sbin:/usr/bin:/usr/sbin MAILTO="" # hdw - linux daily stuff executed at 5 am 0 5 * * * -x /etc/cron.d/hdw.daily && /etc/cron.d/hdw.daily # add your rules ! EOS # crontab extension's files mkdir -p $root/etc/cron.d cat > $root/etc/cron.d/hdw.daily << EOS # hdw - linux /etc/cron.d/hdw.daily # echo "updating system status" echo "+ ldconfig" ; ldconfig echo "+ makewhatis" ; makewhatis echo "+ updatedb" ; updatedb --prunepaths='/tmp /var/tmp /proc /dev /mnt' echo "+ depmod -a" ; depmod -a echo "+ listing core files" for core in \`find / -type f -name core\` ; do echo " - \$core" done echo "done." EOS # permissions chmod 600 $root/etc/crontab chmod 700 $root/etc/cron.d/* }