Treba da to uvrstim medju ovaj kod:
UNAMEOUT=`uname -a`
KVERS=`echo $UNAMEOUT | cut -d' ' -f3 | \
sed -e 's/\(^[0-9]*\.[0-9]*\.[0-9]*\).*/\1/'`
OLDIFS=$IFS
IFS="."
set - $KVERS
IFS=$OLDIFS
if [ "$1" = "2" -a "$2" = "4" ];then
if [ "$3" -lt "9" ];then
## Less than 2.4.9
COLOR="red"
elif [ "$3" -lt "17" ];then
## Less than 2.4.17
COLOR="yellow"
else
COLOR="green"
fi
echo $color
else
echo "not 2.4.x"
fi
Znaci pored tog da mi provjerava i ssh verziju,a kao sto vidite,taj kod gore provjerava kernel verziju
With a PC, I always felt limited
by the software available.
On Unix, I am limited only by my knowledge.
--Peter J. Schoenster