Shutdown DS


Forum: Other Help Topics
Topic: Shutdown DS
started by: xxjcaxx

Posted by xxjcaxx on Nov. 24 2006,09:02
Hello.

I'm trying to programe a shutdown with this sentence:

$shutdown -h 30

My idea is that it should shutdown and power off the computer automatically. But in all shutdown it request me to press enter after all. It open the cd and request me that i must to clear the cd and press enter.

I'm using the cd boot.
¿there was any way to shutdown completly?

And other question: ¿how can i configure the screen saver in DSL?

Thanks and sorry if my english is not perfect.

Posted by Ramik on Nov. 24 2006,17:43
I think its one of the rc's (probably 6) that's responsible for shutdown.
Just shutdown and see which runlevel is initiated, Then just check the scripts associated with that runlevel in /etc/rc$runlevel.d ($runlevel = the runlevel that were initiated), and put in that directory whatever it is you want by the necessary order (K01*,K02*,K03*...).

Posted by Winter Knight on Nov. 28 2006,15:47
I think booting with the noeject option will disable ejecting. Also, the toram option will prevent DSL from ejecting. However, I think with both of these, it will still tell you to remove the CD and require you to press Enter. Then it will shut down.

Ramik's suggestion certainly gives you much finer control. If simply not ejecting isn't enough, than that is the route you want to take. I must warn you that anything you write in /etc will not be there next reboot. So, you'll either need your shutdown script to make these adjustments on the fly, or you'll need to do a HDD install, in which case all adjustments made to /etc will be permanent.

As for turning off screen saver, here's a post regarding that:
< http://damnsmalllinux.org/cgi-bin....t=16211 >
If you want to configure the screen saver as in having an animated Windows-type screen saver, I'm not sure.

Posted by xxjcaxx on Nov. 28 2006,18:24
Thanks, i'll try it.

I'm using DSL in a PC without HD.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.