X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=linux%2Fmppe%2Fmppeinstall.sh;fp=linux%2Fmppe%2Fmppeinstall.sh;h=0000000000000000000000000000000000000000;hb=169be1f83215285b2bd3004f4c1b326b984ccb87;hp=52ae7d12e31661711567ccd82a0cc1263ba7b8e2;hpb=979e14c39fcbbffaa98880f1a5fc33ada4a8063d;p=ppp.git diff --git a/linux/mppe/mppeinstall.sh b/linux/mppe/mppeinstall.sh deleted file mode 100644 index 52ae7d1..0000000 --- a/linux/mppe/mppeinstall.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/sh -# -# A quickie script to install MPPE into the 2.2.19+ or 2.4.18+ kernel. -# Does very little error checking!!! -# - -mppe_files="sha1.[ch] arcfour.[ch] ppp_mppe_compress.c" - -if [ -z "$1" -o ! -d "$1" ]; then - echo "Usage: $0 " >&2 - exit 1 -fi - -# strip any trailing / -set -- ${1%/} -# strip leading /path/to/linux- and trailing -release -ver=`echo "${1##*/}" | sed -e 's/linux-//' -e 's/-.*//'` -if ! expr "$ver" : 2.[246] >/dev/null ; then - ver=`echo "${1##*/}" | sed -e 's/kernel-source-//' -e 's/-.*//'` - if ! expr "$ver" : 2.[246] >/dev/null ; then - echo "$0: Unable to determine kernel version ($ver)" >&2 - exit 1 - fi -fi - -# build patch files list -patchdir=`pwd` -patchfiles= -if expr $ver : 2.2 >/dev/null ; then - patchfiles=$patchdir/linux-2.2.*.patch -elif expr $ver : 2.4 >/dev/null ; then - patchfiles=`echo $patchdir/linux-2.4.18-{include,make}.patch` - # need to differentiate a bit - typeset -i rel=${ver##*.} - if [ $rel -eq 18 ]; then - patchfiles="$patchfiles $patchdir/linux-2.4.18-pad.patch" - elif [ $rel -gt 18 ]; then - patchfiles="$patchfiles $patchdir/linux-2.4.19-pad.patch" - else - echo "$0: unable to determine kernel version" >&2 - exit 1 - fi -elif expr $ver : 2.6 >/dev/null ; then - patchfiles=`echo $patchdir/linux-2.6*.patch` -fi - -echo "Detected kernel version $ver" -echo "I will now patch the kernel in directory $1" -echo -n "Press ret to continue, CTRL-C to exit: " -read - -pushd "$1" >/dev/null -for patch in $patchfiles; do - patch -p1 < $patch -done - -for file in $mppe_files; do - cp -v $patchdir/$file drivers/net -done - -popd >/dev/null - -exit 0