X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=freebsd-3.0%2Fkinstall.sh;h=7a44f95583c330a6e6c5879cafe5dbf162fa436a;hp=ebe4c5edb3dd2f0a73b35cad52d5a57de550fea5;hb=da44517ffef30eb2c170bb97cd6435f6d4e61a0e;hpb=16a9b57b30c662936a24e2d1c09a666ea86f0641 diff --git a/freebsd-3.0/kinstall.sh b/freebsd-3.0/kinstall.sh index ebe4c5e..7a44f95 100644 --- a/freebsd-3.0/kinstall.sh +++ b/freebsd-3.0/kinstall.sh @@ -7,7 +7,10 @@ # Most of the kernel files are already part of the kernel source # but, this updates them for synchronous HDLC operation # -# Paul Fulghum 19-Apr-99 +# Paul Fulghum paulkf@microgate.com August 11, 1999 +# +# 990911 - Added patch for ttycom.h that defines new IOCTL for sync support. +# KPATH=$(uname -v | sed 's/.*://') CONF=$(echo $KPATH | sed 's;.*compile/;;') @@ -42,6 +45,31 @@ for f in if_ppp.h if_ppp.c ppp_tty.c ; do fi done +# Patch files in /usr/src/sys/sys + +for f in ttycom.h ; do + dest=$SYS/sys/$f + patch=$SRC/patch.$f + if [ -f $dest ]; then + echo -n "Patching $dest..." + if patch -s -C -N $dest < $patch 2> /dev/null; then + patch -s -N $dest < $patch + echo "successful." + DOMAKE=yes + else + if patch -s -C -R $dest < $patch 2> /dev/null; then + echo "already applied." + else + echo "failed (incorrect version or already applied)." + fi + fi + else + echo "Warning, file $dest not found" + fi +done + +# Patch files in /usr/include/net + for f in if_ppp.h ; do dest=/usr/include/net/$f patch=$SRC/patch.$f @@ -63,6 +91,29 @@ for f in if_ppp.h ; do fi done +# Patch files in /usr/include/sys + +for f in ttycom.h ; do + dest=/usr/include/sys/$f + patch=$SRC/patch.$f + if [ -f $dest ]; then + echo -n "Patching $dest..." + if patch -s -C -N $dest < $patch 2> /dev/null; then + patch -s -N $dest < $patch + echo "successful." + DOMAKE=yes + else + if patch -s -C -R $dest < $patch 2> /dev/null; then + echo "already applied." + else + echo "failed (incorrect version or already applied)." + fi + fi + else + echo "Warning, file $dest not found" + fi +done + # Tell the user to add a pseudo-device line to the configuration file. if [ -f $CFILE ]; then