1 | 1 | simandl | #!/usr/bin/env sh |
2 | | | |
3 | | | CWD=$(pwd) |
4 | | | |
5 | | | echo "checking kernel version..." |
6 | | | uname -a |
7 | | | if [ -e /proc/version ] ; then cat /proc/version ; fi |
8 | | | echo "" |
9 | | | |
10 | | | while [ ! $(pwd) = "/" ] && [ $( ls | grep -c "modules\|tools\|lib" ) -lt 3 ]; do cd .. ; done |
11 | | | echo "checking configured \"rrdtool\" version..." |
12 | | | BINPATH="" |
13 | | | if [ -e settings ] ; then . settings ; fi |
14 | | | if [ "$BINPATH" = "" ] && [ -e ../settings ] ; then . ../settings ; fi |
15 | | | if [ "$BINPATH" = "" ] && [ -e ../../settings ] ; then . ../../settings ; fi |
16 | | | if [ "$BINPATH" = "" ] && [ -e ../../../settings ] ; then . ../../../settings ; fi |
17 | | | if [ "$BINPATH" = "" ]; then |
18 | | | echo "BINPATH variable not configured in main settings!" |
19 | | | echo "Check installation or call me from somewhere inside HotSaNIC!" |
20 | | | else |
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 |
28 | | | echo "" |
29 | | | |