2006-12-19 00:17:14 +01:00
|
|
|
#!/bin/bash
|
|
|
|
# Copyright (c) 2003 SuSE Linux AG, Germany. All rights reserved.
|
|
|
|
|
2008-11-21 17:02:17 +01:00
|
|
|
# get kernel version
|
|
|
|
OFS="$IFS" ; IFS=".-" ; version=(`uname -r`) ; IFS="$OIFS"
|
2012-11-19 09:24:31 +01:00
|
|
|
if test ${version[0]} -gt 2 ; then
|
|
|
|
: # okay
|
|
|
|
elif test ${version[0]} -lt 2 -o ${version[1]} -lt 6 -o ${version[2]} -lt 11 ; then
|
2008-11-21 17:02:17 +01:00
|
|
|
echo "FATAL: kernel too old, need kernel >= 2.6.11 for this package" 1>&2
|
|
|
|
exit 1
|
|
|
|
fi
|
2006-12-19 00:17:14 +01:00
|
|
|
|
|
|
|
exit 0
|
|
|
|
|