3 # Shell script to get the required tarballs for zfcpdump from the internet
5 # > get_files : get files from internet
6 # > get_files -c: check if all files are already there
8 # Copyright IBM Corp. 2003, 2006.
9 # Author(s): Michael Holzheu <holzheu@de.ibm.com>
15 # check(): function to check error codes
29 # get_files(): get files from the internet
33 if [ "${WGET_PROXY}" != "" ]
35 export http_proxy
=$WGET_PROXY
38 if [ ! -f "extern/$E2FS_PROGS_TARBALL" ]
40 wget
-N "$E2FS_PROGS_HOST/$E2FS_PROGS_TARBALL"
42 mv $E2FS_PROGS_TARBALL extern
45 if [ ! -f "extern/$KERNEL_TARBALL" ]
47 wget
-N "$KERNEL_HOST/$KERNEL_TARBALL"
49 mv $KERNEL_TARBALL extern
54 # check_files(): check if files are in the extern directory
56 function check_files
()
60 if [ ! -f "extern/$KERNEL_TARBALL" ]
62 if [ "$missing" == "no" ]
64 echo "********************************************************************************"
67 echo "* ERROR: 'extern/$KERNEL_TARBALL' missing"
70 if [ ! -f "extern/$E2FS_PROGS_TARBALL" ]
72 if [ "$missing" == "no" ]
74 echo "********************************************************************************"
77 echo "* ERROR: 'extern/$E2FS_PROGS_TARBALL' missing"
80 if [ "$missing" == "y" ]
82 echo "* Call 'get_files.sh' to get the required tarballs from the internet!"
83 echo "********************************************************************************"