#! /bin/sh # # hdw - linux scripts/systemcheck # # author: miguel, modified by hackbard # if [ "$1" ] ; then echo "usage: $0" ; exit 1 fi found_error=0 if [ -z "`type -p wget`" ] ; then echo echo "hdw system check: program 'wget' not found!" echo "please install the lates wget version." found_error=1 fi if [ -z "`type -p tar`" ] ; then echo echo "hdw system check: program 'tar' not found!" echo "please install the latest bzip2 version." found_error=1 fi if [ -z "`type -p cvs`" -a "$hdw_target" != "default" ] ; then echo echo "hdw system check: program 'cvs' not found!" echo "please install the lates cvs version." found_error=1 fi if [ -z "`type -p bzip2`" ] ; then echo echo "hdw system check: program 'bzip2' not found!" echo "please install the latest bzip2 version." found_error=1 fi if [ $found_error -ne 0 ] ; then echo echo "hdw system check found errors -> not doing anything." echo fi exit $found_error