]> git.ozlabs.org Git - ppp.git/blob - linux/mppe/mppeinstall.sh
Corrected version of MPPE kernel support (Frank Cusack)
[ppp.git] / linux / mppe / mppeinstall.sh
1 #!/bin/sh
2 #
3 # A quickie script to install MPPE into the 2.2.19+ or 2.4.18 kernel.
4 # Does no error checking!!!
5 #
6
7 mppe_files="sha1.[ch] arcfour.[ch] ppp_mppe_compress.c"
8
9 [ $1 ] || exit 1
10 [ -d "$1" ] || exit 1
11
12 echo -n "Is this a 2.2 kernel or 2.4 kernel: "
13 read ver
14 echo "I will now patch the kernel in directory $1"
15 echo -n "Press ret to continue, CTRL-C to exit: "
16 read
17
18 patchdir=`pwd`
19 pushd "$1" >/dev/null
20 for patch in $patchdir/linux-$ver.*.patch; do
21     patch -p1 < $patch
22 done
23
24 for file in $mppe_files; do
25     cp -v $patchdir/$file drivers/net
26 done
27
28 popd >/dev/null
29
30 exit 0