summaryrefslogtreecommitdiffstats
path: root/etc/etc.amd64/rc.amd64
diff options
context:
space:
mode:
authoryokota <yokota@FreeBSD.org>1999-01-29 18:09:38 +0000
committeryokota <yokota@FreeBSD.org>1999-01-29 18:09:38 +0000
commitacdb5e92a7e57850893db710ba8c13b12d2a30ea (patch)
treeea0517170c61d941b521cda78c10b19526882875 /etc/etc.amd64/rc.amd64
parent35a0bfc77b1d62304afa51f1291dc451c19642d6 (diff)
downloadFreeBSD-src-acdb5e92a7e57850893db710ba8c13b12d2a30ea.zip
FreeBSD-src-acdb5e92a7e57850893db710ba8c13b12d2a30ea.tar.gz
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
Diffstat (limited to 'etc/etc.amd64/rc.amd64')
-rw-r--r--etc/etc.amd64/rc.amd645
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/etc.amd64/rc.amd64 b/etc/etc.amd64/rc.amd64
index e38be7c..b42161e 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
OpenPOWER on IntegriCloud