]> hackdaworld.org Git - hdw-linux/hdw-linux.git/blob - scripts/syscheck
deleted obsolete patch for libmustux
[hdw-linux/hdw-linux.git] / scripts / syscheck
1 #! /bin/sh
2 #
3 # hdw - linux scripts/systemcheck
4 #
5 # author: miguel, modified by hackbard
6 #
7
8 if [ "$1" ] ; then
9         echo "usage: $0" ; exit 1
10 fi
11
12 found_error=0
13
14 if [ -z "`type -p wget`" ] ; then
15         echo
16         echo "hdw system check: program 'wget' not found!"
17         echo "please install the lates wget version."
18         found_error=1
19 fi
20
21 if [ -z "`type -p tar`" ] ; then
22         echo
23         echo "hdw system check: program 'tar' not found!"
24         echo "please install the latest bzip2 version."
25         found_error=1
26 fi
27
28 if [ -z "`type -p cvs`" -a "$hdw_target" != "default" ] ; then
29         echo
30         echo "hdw system check: program 'cvs' not found!"
31         echo "please install the lates cvs version."
32         found_error=1
33 fi
34
35 if [ -z "`type -p bzip2`" ] ; then
36         echo
37         echo "hdw system check: program 'bzip2' not found!"
38         echo "please install the latest bzip2 version."
39         found_error=1
40 fi
41
42 if [ $found_error -ne 0 ] ; then
43         echo
44         echo "hdw system check found errors -> not doing anything."
45         echo
46 fi
47
48 exit $found_error