Article View: comp.sys.next.misc
Article #3058rc.local problem: SUMMARY
From: Andrew T Duchowski
Date: Wed, 14 Oct 1992 16:32
Date: Wed, 14 Oct 1992 16:32
65 lines
3089 bytes
3089 bytes
Recently I posted about having a problem with my commands not working
in rc.local, although my 'fbshow' commands came up ok. My main problem
was with getting a screensaver going from boot. I was using somethign
called 'newscreensaver' that let you pick a screen (some logos, and
'justblack' among others).
I ended up getting the PD adim program from the net. It works nicely,
and blacks out the screen more quietly than 'newscreensaver'.
newscreensaver used to whir the disk (presumably to load up the screen
image, whether it was jutblack, or some logo), and also flash the screen
at full intensity before going black (don't know why). The rc.local
that runs adim, and also turns off your printer at boot time is below,
courtesy of <hardy@golem.ps.uci.edu> (hope he doesn't mind me
putting it up here). I've changed it a little to include some fbshow
things so that your non-verbose boot up will look pretty.
Note that the solution may still cause you one minor problem (I haven't
tested it yet, but you should be aware of it under 3.0 - I didn't have
the problem under 2.0): when you nppower off the printer at boot
time, it becomes Unavailable under PrintManager's Printer app. So
when you try to print for the first time after boot up, you may find
that no printer can be selected from the Print screen. You'll have
to then run PrintManager and make the printer Private.
Thanks to all who replied!!
-Andrew.
----------------------------------------------------------------
#!/bin/sh -u
#
# This script is for augmenting the standard system startup commands. It is
# executed automatically by the system during boot up.
#
# Copyright (C) 1992 by NeXT Computer, Inc. All rights reserved.
#
# As released orm, this script does nothing. You may customize
# it as you wish.
#
fbshow -A -B -E -I "Starting*Local*Services..."
# Read in configuration information
. /etc/hostconfig
(echo -n 'local daemons:') >/dev/console
#
# Run your own commands here
fbshow -A -B -E -I "Disabling*Printer..."
if [ -f /usr/etc/nppower ]; then
sleep 5
/usr/etc/nppower off
(echo -n 'powering off NeXTprinter') >/dev/console
fi
fbshow -A -B -E -I "Launching*Screensaver..."
/usr/local/bin/adim -b0 -t300 -s60 &
(echo '.') >/dev/console
----------------------------------------------------------------------
--
-- Andrew Duchowski
-- Texas A&M University
-- andrewd@cs.tamu.edu (non-NeXT mail)
-- andrewd@visual2.cs.tamu.edu (NeXT mail)
Technical Details
Message-ID:
<1992Oct14.163241.27485@tamsun.tamu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!ogicse!usenet.coe.montana.edu!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!tamsun.tamu.edu!andrewdShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!usenet.coe.montana.edu!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!tamsun.tamu.edu!andrewd From: andrewd@tamsun.tamu.edu (Andrew T Duchowski) Newsgroups: comp.sys.next.misc Subject: rc.local problem: SUMMARY Message-ID: <1992Oct14.163241.27485@tamsun.tamu.edu> Date: 14 Oct 92 16:32:41 GMT Article-I.D.: tamsun.1992Oct14.163241.27485 Organization: Texas A&M University, College Station Lines: 65