display kernel version

This commit is contained in:
Karsten Keil 2005-12-08 18:52:00 +00:00
parent 0913082112
commit 66319c89ef
1 changed files with 17 additions and 14 deletions

View File

@ -9,20 +9,6 @@ DODIFF=false
DIFFREV=false
ALLOW_ANY_DIR=true
echo
echo "BE AWARE!!"
echo
echo "You are just attempting to overwrite your Kernel mISDN Sources"
echo "you probably prefer to use make install."
echo
echo "If you still want to patch your Kernel just answer yes:"
read i
if [ ! $i == "yes" ] ; then
echo "OK exiting"
exit 1
fi
docp() {
SRCNAME=$1;
@ -238,6 +224,23 @@ while getopts :dhk:uc:vtidr a ; do
done
shift `expr $OPTIND - 1`
echo
echo "BE AWARE!!"
echo
echo "You are just attempting to overwrite your Kernel mISDN Sources"
echo "you probably prefer to use make install."
echo
echo "KERNELDIR=$KERNELDIR"
ls -ld $KERNELDIR
echo
echo "If you still want to patch this Kernel just answer yes:"
read i
if [ ! $i == "yes" ] ; then
echo "OK exiting"
exit 1
fi
if [ -z "$VERSION" -o -z "$PATCHLEVEL" ] ; then
if ! [ -f $KERNELDIR/Makefile ] ; then
echo "VERSION/PATCHLEVEL not set and no Makefile to read from"