[kwlug disc.] One question.
john at netdirect.ca
john at netdirect.ca
Sat Jun 2 21:15:57 EDT 2007
It depends on the distrop I think. On redhat, Fedora, CentOS and other distros that use initscripts you would create an /etc/init.d/ script and link it to the /etc/rc.d/rc0.d directory for shutdown and the rc6.d for reboot.
----- Original Message -----
From: Daniel Jolkowski [catch.22 at bluebottle.com]
Sent: 02/06/2007 10:46 AM MST
To: kwlug-disc at kwlug.org
Subject: [kwlug disc.] One question.
I was wondering, how to run a command just before shutdown?
I have a dell laptop running well, as long as you don't want to put it
to sleep. It's set up to run in a low power state when the ac adaptor
is unplugged. CPU slows down, video card slows down, backlight dims...
this all works fine when unplugging and plugging things in or manually.
However, when I boot without power plugged in X becomes unhappy, or
actually, now that I consider it, the whole video display becomes
unhappy. No terminal etc. This is something to do with the fancy video
card as when I boot with no fancy video setup and into terminal only,
everything is happy whatever the powerstate.
So my question is, rather then try to correct all that, which seems like
seventeen minor headaches, have the computer go into its normal power
state before shutdown, and then check whether it is battery or not
battery when it boots.
But my only internet access is at work and its flakey and I am a good
hour out of town so going to the library is difficult if I could get a
solid internet slot ( tourists ). Is there a man page for this? I
know how to get the computer to change powerstates and whatnot, I just
don't know how to tell it when to do it.
Daniel...
PS Setting up dual boot with vista on this dell laptop was not nearly as
difficult as I was led to believe. As long as you discount the
hibernate issues.
----------------------------------------------------------------------
Finally - A spam blocker that actually works.
http://www.bluebottle.com
_______________________________________________
KWLUG-Disc mailing list
KWLUG-Disc at kwlug.org
http://listserv.kwlug.org/mailman/listinfo/kwlug-disc
More information about the KWLUG-Disc
mailing list