jablonka.czprosek.czf

hotsanic

Subversion Repositories:
[/] [branches/] [HotSaNIC-0.5.0-pre6/] [tools/] [checkversions.sh] - Blame information for rev 24

 

Line No. Rev Author Line
11simandl#!/usr/bin/env sh
2 
3CWD=$(pwd)
4 
5echo "checking kernel version..."
6uname -a
7if [ -e /proc/version ] ; then cat /proc/version ; fi
8echo ""
9 
10while [ ! $(pwd) = "/" ] && [ $( ls | grep -c "modules\|tools\|lib" ) -lt 3 ]; do cd .. ; done
11echo "checking configured \"rrdtool\" version..."
12BINPATH=""
13if [ -e settings ] ; then . settings ; fi
14if [ "$BINPATH" = "" ] && [ -e ../settings ] ; then . ../settings ; fi
15if [ "$BINPATH" = "" ] && [ -e ../../settings ] ; then . ../../settings ; fi
16if [ "$BINPATH" = "" ] && [ -e ../../../settings ] ; then . ../../../settings ; fi
17if [ "$BINPATH" = "" ]; then
18 echo "BINPATH variable not configured in main settings!"
19 echo "Check installation or call me from somewhere inside HotSaNIC!"
20else
21 if [ -e $BINPATH/rrdtool ]; then
22 echo "using rrdtool binary in \"$BINPATH\""
23 $BINPATH/rrdtool | grep Copyright
24 else
25 echo "no \"rrdtool\" binary found in \"$BINPATH\""
26 fi
27 fi
28echo ""
29 

Powered by WebSVN 2.2.1