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 25 Oct 2014, 00:31
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 Posts_count  
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: 8365

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: 11130
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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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