#!/bin/bash # # Avoid SLES10 systems using kernel 2.6.16 # case "$(uname -i)" in *ppc*) read -t 10 name dummy version rest < /proc/version if test -z "$version" ; then echo "FATAL: can not read /proc/version" 1>&2 exit 1 fi OIFS="$IFS" IFS='.-' version=($version) IFS="$OIFS" if test ${version[0]} -lt 2 -o ${version[1]} -lt 6 -o ${version[2]} -lt 32 ; then echo "FATAL: kernel too old, need kernel >= 2.6.32 for this package" 1>&2 exit 1 fi esac