From ae908d9cf03948dfe672ef9b3abc6599cc4d38ae Mon Sep 17 00:00:00 2001 From: Kazutaka YOKOTA Date: Fri, 29 Jan 1999 18:09:38 +0000 Subject: [PATCH] Unload the splash decoder module when a screen saver module is loaded. Strictly speaking, it is not necessary; the screen saver will load even if the splash module is still in memory. But still, it is the right thing to do, otherwise the splash decoder module just wasts the kernel space. Discussed with: des --- etc/etc.amd64/rc.amd64 | 5 ++++- etc/etc.i386/rc.i386 | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/etc/etc.amd64/rc.amd64 b/etc/etc.amd64/rc.amd64 index e38be7cc5cf5..b42161ec50ce 100644 --- a/etc/etc.amd64/rc.amd64 +++ b/etc/etc.amd64/rc.amd64 @@ -1,6 +1,6 @@ #!/bin/sh - # -# $Id: rc.i386,v 1.36 1998/11/01 13:04:15 wosch Exp $ +# $Id: rc.i386,v 1.37 1998/11/11 05:25:32 peter Exp $ # Do i386 specific processing # @@ -94,6 +94,9 @@ fi # screen saver if [ "X${saver}" != X"NO" ] ; then echo -n ' screensaver' + for i in `kldstat | awk '$5 ~ "^splash_.*$" { print $5 }'`; do + kldunload $i + done kldstat -v | grep -q _saver || kldload ${saver}_saver fi diff --git a/etc/etc.i386/rc.i386 b/etc/etc.i386/rc.i386 index e38be7cc5cf5..b42161ec50ce 100644 --- a/etc/etc.i386/rc.i386 +++ b/etc/etc.i386/rc.i386 @@ -1,6 +1,6 @@ #!/bin/sh - # -# $Id: rc.i386,v 1.36 1998/11/01 13:04:15 wosch Exp $ +# $Id: rc.i386,v 1.37 1998/11/11 05:25:32 peter Exp $ # Do i386 specific processing # @@ -94,6 +94,9 @@ fi # screen saver if [ "X${saver}" != X"NO" ] ; then echo -n ' screensaver' + for i in `kldstat | awk '$5 ~ "^splash_.*$" { print $5 }'`; do + kldunload $i + done kldstat -v | grep -q _saver || kldload ${saver}_saver fi