Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 26 Jul 2014, 09:24
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Need a script that shuts Puppy down right after booting
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
madabout

Joined: 19 Aug 2009
Posts: 1

PostPosted: Wed 19 Aug 2009, 05:27    Post subject:  Need a script that shuts Puppy down right after booting  

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.
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8032

PostPosted: Wed 19 Aug 2009, 19:45    Post subject:  

wmpoweroff is the script normally called to turn the machine off it that helps

mike
Back to top
View user's profile Send private message 
paulh177


Joined: 22 Aug 2006
Posts: 875
Location: ST862228

PostPosted: Thu 20 Aug 2009, 01:48    Post subject: Re: Need a script that shuts Puppy down right after booting  

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

_________________
Want to report a bug or problem? Have a read of this first ...
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11080
Location: The Peoples Republic of California

PostPosted: Thu 20 Aug 2009, 08:46    Post subject:  

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.

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0478s ][ Queries: 11 (0.0063s) ][ GZIP on ]