Page 1 of 1

Need a script that shuts Puppy down right after booting

Posted: Wed 19 Aug 2009, 09:27
by madabout
Hey Guys,

Im trying to create a shutdown script that will automatically do the same thing as when i click "Start" > Shutdown, I find that when i enter the shutdown command in rc.local it does nothing, and when I enter "shutdown" in the console it brings up the shutdown menu.

I need this to be automated, so when the computer boots up, it shuts down once its fully loaded the desktop, "dont ask why" Its actually booting off a USB flash drive, so normaly when i click the shutdown button, it writes the pup_save.2fs file to the local HDD as its shutting down to automatically save the changes.

I still need this to happen so if anyone can help me, that would be great.

Ohhh and im running version 4.2.1

Cheers.

Posted: Wed 19 Aug 2009, 23:45
by mikeb
wmpoweroff is the script normally called to turn the machine off it that helps

mike

Re: Need a script that shuts Puppy down right after booting

Posted: Thu 20 Aug 2009, 05:48
by paulh177
madabout wrote: "dont ask why"
but if you take the trouble to explain why, you certainly have a much better chance of getting a useful response

Posted: Thu 20 Aug 2009, 12:46
by Bruce B
I'm not using your version.

I suggest looking at /sbin/poweroff and see what commands it sends

If you want it to poweroff before xwin starts maybe replace the /etc/profile exec xwin with exec /sbin/poweroff or the commands it contains.