blob: 69b5f6556c2f00b80668ca2925dc6595e1dd0337 [file] [log] [blame] [raw]
#!/bin/sh
uname -R 2>/dev/null >/dev/null
if [ $? -eq 0 ] ; then
osrev=`uname -R| awk ' { print $NF; } ' -`
sub=`expr $osrev : '[0-9]*\.[0-9]*\.\([0-9]*\).*'`
else
osrev=`uname -r`
sub=0
fi
major=`expr $osrev : '\([0-9]\)\..*'`
minor=`expr $osrev : '[0-9]*\.\([0-9]*\).*'`
printf '%d%02d%02d' $major $minor $sub
exit 0