blob: fe176a2d8bbecb32919ff7b297e5b95bb56e5271 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
$NetBSD: patch-au,v 1.1.1.1 1999/10/08 04:34:43 dbj Exp $
--- /dev/null Sat Sep 18 04:13:35 1999
+++ netbsd-1.4/kinstall.sh Sat Sep 18 04:15:32 1999
@@ -0,0 +1,78 @@
+#!/bin/sh
+
+# This script modifies the kernel sources in /sys to install
+# ppp-2.3. It is intended to be run in the ppp-2.3 directory.
+#
+# Paul Mackerras 11-Dec-95
+
+ARCH=$(uname -m)
+CONF=$(uname -v | sed 's/.*(\(.*\)).*/\1/')
+SYS=/sys
+ARCHDIR=$SYS/arch/$ARCH
+CFILE=$ARCHDIR/conf/$CONF
+SRC=netbsd-1.4
+DOCONF=
+DOMAKE=
+CONFIG=config
+
+# Copy new versions of files into /sys/net
+
+for f in include/net/if_ppp.h include/net/ppp-comp.h include/net/ppp_defs.h \
+ $SRC/bsd-comp.c $SRC/ppp-deflate.c $SRC/if_ppp.c $SRC/if_pppvar.h \
+ $SRC/ppp_tty.c $SRC/slcompress.c include/net/slcompress.h \
+ common/zlib.c common/zlib.h; do
+ dest=$SYS/net/$(basename $f)
+ if [ -f $dest ]; then
+ if ! diff -qBI '[ ]\$[IN][de].*:.*\$' $f $dest >/dev/null; then
+ echo "Copying $f to $dest"
+ mv -f $dest $dest.orig && echo " (old version saved in $dest.orig)"
+ cp $f $dest
+ DOMAKE=yes
+ fi
+ else
+ echo "Copying $f to $dest"
+ cp $f $dest
+ DOMAKE=yes
+ fi
+done
+
+# Tell the user to add a pseudo-device line to the configuration file
+# and remake the kernel, if necessary.
+
+if [ -f $CFILE ]; then
+ if ! grep -q '^[ ]*pseudo-device[ ][ ]*ppp' $CFILE; then
+ echo
+ echo "The currently-running kernel was built from configuration file"
+ echo "$CFILE, which does not include PPP."
+ echo "You need either to add a line like 'pseudo-device ppp 2' to"
+ echo "this file, or use another configuration file which includes"
+ echo "a line like this."
+ DOCONF=yes
+ fi
+fi
+
+if [ $DOCONF ]; then
+ echo
+ echo "You need to configure and build a new kernel."
+ echo "The procedure for doing this involves the following commands:"
+ echo "(\"$CONF\" may be replaced by the name of another config file.)"
+ echo
+ echo " cd $ARCHDIR/conf"
+ echo " /usr/sbin/$CONFIG $CONF"
+ echo " cd ../compile/$CONF"
+ echo " make depend"
+ DOMAKE=yes
+elif [ $DOMAKE ]; then
+ echo
+ echo "You need to build a new kernel."
+ echo "The procedure for doing this involves the following commands:"
+ echo
+ echo " cd $ARCHDIR/compile/$CONF"
+fi
+if [ $DOMAKE ]; then
+ echo " make"
+ echo
+ echo "Then copy the new kernel ($ARCHDIR/compile/$CONF/netbsd)"
+ echo "to /netbsd and reboot. (Keep a copy of the old /netbsd,"
+ echo "just in case.)"
+fi
|