modstat | grep _saver is used to determine if a screensaver is loaded

already. The modstat output goes to the screen.
PR:		7351
Reviewed by:	phk
Submitted by:	Jos Backus <Jos.backus@nl.origin-it.com>
This commit is contained in:
Poul-Henning Kamp 1998-07-22 05:38:58 +00:00
parent 79bdd98bf7
commit ee67ce3672
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $Id: rc.i386,v 1.33 1998/04/02 15:17:52 ache Exp $
# $Id: rc.i386,v 1.34 1998/04/02 15:33:49 ache Exp $
# Do i386 specific processing
#
@ -94,7 +94,7 @@ fi
# screen saver
if [ "X${saver}" != X"NO" ] ; then
echo -n ' screensaver'
modstat | grep _saver || \
modstat | grep -q _saver || \
modload -u -o /tmp/saver_mod -q /lkm/${saver}_saver_mod.o
fi

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $Id: rc.i386,v 1.33 1998/04/02 15:17:52 ache Exp $
# $Id: rc.i386,v 1.34 1998/04/02 15:33:49 ache Exp $
# Do i386 specific processing
#
@ -94,7 +94,7 @@ fi
# screen saver
if [ "X${saver}" != X"NO" ] ; then
echo -n ' screensaver'
modstat | grep _saver || \
modstat | grep -q _saver || \
modload -u -o /tmp/saver_mod -q /lkm/${saver}_saver_mod.o
fi