![]() ![]() |
hotsanic |
Subversion Repositories: |
Compare with Previous - Blame - Download
#!/usr/bin/env shCWD=$(pwd)echo "checking kernel version..."uname -aif [ -e /proc/version ] ; then cat /proc/version ; fiecho ""while [ ! $(pwd) = "/" ] && [ $( ls | grep -c "modules\|tools\|lib" ) -lt 3 ]; do cd .. ; doneecho "checking configured \"rrdtool\" version..."BINPATH=""if [ -e settings ] ; then . settings ; fiif [ "$BINPATH" = "" ] && [ -e ../settings ] ; then . ../settings ; fiif [ "$BINPATH" = "" ] && [ -e ../../settings ] ; then . ../../settings ; fiif [ "$BINPATH" = "" ] && [ -e ../../../settings ] ; then . ../../../settings ; fiif [ "$BINPATH" = "" ]; thenecho "BINPATH variable not configured in main settings!"echo "Check installation or call me from somewhere inside HotSaNIC!"elseif [ -e $BINPATH/rrdtool ]; thenecho "using rrdtool binary in \"$BINPATH\""$BINPATH/rrdtool | grep Copyrightelseecho "no \"rrdtool\" binary found in \"$BINPATH\""fifiecho ""