#!/bin/bash #REPOSITORY_DIR=/mnt/miraculix/dist-mirrors REPOSITORY_DIR=$(dirname $0) REPOSITORIES=" redhat/rhel/4/os redhat/rhel/4/csgfs centos/4/csgfs comoonics/all hp/all/x86_64 mmg/productive" ARCHS="i386 x86_64 ia64 noarch" USAGE=1 function usage() { echo "$0 [-h|-v] [-d] [-r repositories [-a archs ]]" ## Usage # ---------------------------------------------------------- cat </dev/null && yum-arch -l $REPOSITORY_DIR/$repository/$arch &> /dev/null && echo "(OK)" || echo "(FAILED)" fi done done