#~/bin/sh # # MandrakeCooker mirror app # By Sinner from the Prairy # # Changelog: # ==== # 20050228 - First Release # 20060126 - some updates to the way MDV2006 handles urpmi (md5sum et all) COOKERLOCAL='/var/ftp/pub/mandrake/cooker/i586/media/' # Esta linea y la siguiente estan comentadas. La siguiente linea es otro ejemplo de mirror de cooker # COOKERDIR='ftp://ftp.cica.es/mirrors/Linux/Mandrakelinux/devel/cooker/i586/media/' COOKERDIR='ftp://ftp.proxad.net/pub/Distributions_Linux/Mandrake/devel/cooker/i586/media/' ARGS='--no-chmod --no-mtimes --no-chown --exclude hdlist.cz --exclude synthesis.hdlist.cz --exclude-regexp ^kernel-multimedia -v ' for MEDIA in 'main/' 'contrib/' 'media_info/' 'jpackage/' do /usr/bin/mirrordir $ARGS $COOKERDIR$MEDIA $COOKERLOCAL$MEDIA # echo $ARGS $COOKERDIR$MEDIA $COOKERLOCAL$MEDIA cd $COOKERLOCAL$MEDIA /bin/find ./ -type f -exec chmod +r {} \; /usr/bin/genhdlist . && /usr/bin/md5sum *.cz > MD5SUM done # End of script