You can remove LiS from your system by following this procedure.
In your LiS installation directory do a "make
very-clean". This will remove any character special files
in /dev that were created
by an earlier "make install"
plus any patches that were placed into the kernel source tree. It will
also remove STREAMS utilities that were installed in /usr/sbin
and /usr/local/bin. Note:
for kernel version 2.0.36 and later there will be no patches in the kernel
source tree unless you requested direct linking of LiS with the kernel
at LiS installation time.
Then, in the directory above, enter "rm
-r LiS-2.19". Substitute whatever the version of LiS is that
you are removing. Then do "rm
/usr/src/LiS" to remove the symbolic link to the LiS installation
directory.
If you were linking LiS directly into the kernel, you need to rebuild
your kernel.
Problems Removing LiS (obsolete)
If the automatic removal if LiS does not seem to go well you can delete
the STREAMS oriented patches from your kernel source by hand just by editing
a few files.
In your kernel source directory, edit the file init/main.c. Scan for
lines containing the word "STREAMS". Delete all such line and
save the file.
Now edit the file drivers/char/Makefile. Scan for lines containing the
word "STREAMS". Before deleting all such lines, examine the
first such line in context to see if it looks like the following:
L_OBJS := tty_io.o n_tty.o tty_ioctl.o mem.o random.o \
/usr/src/LiS-1.25/streams.o # STREAMS
If so then delete the backslash from the first line as well as the line
containing the word "STREAMS". Then delete all other lines in
this file containing the word "STREAMS".
Alternate Method (obsolete)
If LiS is the only patch that you have applied to the files init/main.c
and drivers/char/Makefile then you can do the following.
Change to the directory ./init in your kernel source tree and do the
following.
mv main.c main.c.streams
mv main.c.orig main.c
Then change to the directory drivers/char (cd ../drivers/char) and do
the following.
mv Makefile Makefile.streams
mv Makefile.orig Makefile
|