Added kernel MPPE patches (2.2.20 kernel only!) from Frank Cusack.
[ppp.git] / linux / mppe / mppeinstall.sh
1 #!/bin/sh
2 #
3 # A quickie script to install MPPE into the 2.2.20 kernel.
4 # Does no error checking!!!
5 #
6
7 mppe_files="sha1.[ch] arcfour.[ch] ppp_mppe.c"
8
9 [ $1 ] || exit 1
10 [ -d "$1" ] || exit 1
11
12 echo "I will now patch the kernel in directory $1"
13 echo -n "Press ret to continue, CTRL-C to exit: "
14 read
15
16 patchdir=`pwd`
17 pushd "$1" >/dev/null
18 for patch in $patchdir/linux*.patch; do
19     patch -p1 < $patch
20 done
21
22 for file in $mppe_files; do
23     cp $patchdir/$file drivers/net
24 done
25
26 popd >/dev/null
27
28 exit 0