1 # hdw - linux cron package
3 # author: hackbard@hackdaworld.dyndns.org
7 # [D] cron3.0pl1.tar.gz ftp://metalab.unc.edu/pub/Linux/system/daemons/cron/
11 cat > $root/etc/crontab << EOS
12 # hdw - linux /etc/crontab
15 PATH=/bin:/sbin:/usr/bin:/usr/sbin
18 # hdw - linux daily stuff executed at 5 am
19 0 5 * * * -x /etc/cron.d/hdw.daily && /etc/cron.d/hdw.daily
24 # crontab extension's files
25 mkdir -p $root/etc/cron.d
26 cat > $root/etc/cron.d/hdw.daily << EOS
27 # hdw - linux /etc/cron.d/hdw.daily
29 echo "updating system status"
30 echo "+ ldconfig" ; ldconfig
31 echo "+ makewhatis" ; makewhatis
32 echo "+ updatedb" ; updatedb --prunepaths='/tmp /var/tmp /proc /dev /mnt'
33 echo "+ depmod -a" ; depmod -a
34 echo "+ listing core files"
35 for core in \`find / -type f -name core\` ; do
41 chmod 600 $root/etc/crontab
42 chmod 700 $root/etc/cron.d/*