mars-nwe/examples/patchme

21 lines
501 B
Plaintext
Raw Normal View History

2011-11-13 00:38:55 +01:00
#!/bin/sh
2011-11-13 00:38:56 +01:00
### !!!!!!! this is only for kernel 1.3.56 !!!!!!!!
2011-11-13 00:38:55 +01:00
ACT_DIR=`pwd`
PATCHFILE=kpatch1.3.56
LINUXDIR=/usr/src/linux
IPXDIR=$LINUXDIR/net/ipx
IPXFILE=af_ipx.c
if [ -r $IPXDIR/$IPXFILE ] ; then
if [ -r $IPXDIR/P1 ] ; then
echo "patch was allready made: $IPXDIR/P1 exist"
else
cd $IPXDIR && cp -a $IPXFILE $IPXFILE.org && \
patch < $ACT_DIR/$PATCHFILE && echo "$PATCHFILE" > $IPXDIR/P1
echo "please rebuild the kernel"
fi
else
echo "linuxdir $LINUXDIR perhaps wrong ?"
fi