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, 05:01
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Multiple Save File Boot Question
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
DaveS


Joined: 09 Oct 2008
Posts: 3726
Location: UK

PostPosted: Wed 03 Jul 2013, 02:22    Post_subject:  Multiple Save File Boot Question  

One of the most exciting features of Puppy is the ability to have multiple save files, and select the required via the menu that appears on boot up. Effectively allowing the appearance of having multiple computers. However, my question is, 'is it possible to give this menu a timeout?'
In other words, if no selection is made after a short time, it defaults to loading the first save file in the list?
Presumably this would require editing initrd.gz?

_________________
Spup Frugal HD and USB
Root forever!
Back to top
View user's profile Send_private_message 
SFR


Joined: 26 Oct 2011
Posts: 1078

PostPosted: Wed 03 Jul 2013, 08:50    Post_subject:  

Yeah, it's a matter of initrd.gz/init script.

Find the following line:
Code:
read NUMSAVE

and replace it with:
Code:
read -t5 NUMSAVE; [ ! "$NUMSAVE" ] && NUMSAVE=1

Timeout is 5 sec. Works for me in Slacko-5.5.

Or maybe something more fancy (it's a single line):
Code:
for i in `seq 5 -1 0`; do echo -e "\033[35mThe 1st savefile will be auto loaded in $i seconds." > /dev/console; read -t1 NUMSAVE && break; echo -e '\033[2A' >/dev/console; done; [ ! "$NUMSAVE" ] && NUMSAVE=1

BTW, if you have less than 10 savefiles, you can also add '-n1' parameter to 'read' command:
read -t5 -n1 NUMSAVE (1st example) or read -t1 -n1 NUMSAVE (2nd eg.)
Thanks to it there won't be need to press enter after making a choice.

A note about editing initrd.gz:
In newer Pups it's enough to click initrd.gz in order to extract it and edit, then click again to compress.
In older Pups there may be need to do it manually:
http://www.murga-linux.com/puppy/viewtopic.php?t=53019
http://www.murga-linux.com/puppy/viewtopic.php?p=309289#309289
And of course making backup before proceeding is recommended.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send_private_message 
DaveS


Joined: 09 Oct 2008
Posts: 3726
Location: UK

PostPosted: Wed 03 Jul 2013, 09:16    Post_subject:  

Thanks. Wow, editing initrd got way easier since the last time I did it. Thanks for the tip!
_________________
Spup Frugal HD and USB
Root forever!
Back to top
View user's profile Send_private_message 
R-S-H

Joined: 18 Feb 2013
Posts: 490

PostPosted: Wed 03 Jul 2013, 09:28    Post_subject:  

DaveS wrote:
Thanks. Wow, editing initrd got way easier since the last time I did it. Thanks for the tip!

Edit the initrd.gz with right-click-action

_________________
LazY Puppy Home
The new LazY Puppy Information Centre

Back to top
View user's profile Send_private_message 
DaveS


Joined: 09 Oct 2008
Posts: 3726
Location: UK

PostPosted: Wed 03 Jul 2013, 09:34    Post_subject:  

R-S-H wrote:
DaveS wrote:
Thanks. Wow, editing initrd got way easier since the last time I did it. Thanks for the tip!

Edit the initrd.gz with right-click-action


Guess I would need to install 'rightclicks' for that? It is not offered as an option in Slacko 5.5 standard.
Works like a charm BTW

_________________
Spup Frugal HD and USB
Root forever!
Back to top
View user's profile Send_private_message 
R-S-H

Joined: 18 Feb 2013
Posts: 490

PostPosted: Wed 03 Jul 2013, 10:01    Post_subject:  

Yes, in newer puppies the right-click menu is different.

The right-click symbolic links are going to:

/root/.config/rox.sourceforge.net/OpenWith/.application_x-gzip

and

/root/.config/rox.sourceforge.net/OpenWith/.inode_directory

after installing the .pet.

In newer puppies one has to configure the ROX right-click-menu manually, because the initrd.gz has its own "OpenWith"-directory.

Just copy or move the file from /root/.config/rox.sourceforge.net/OpenWith/.application_x-gzip to the directory that opens up in your puppy when configuring the ROX right-click-menu.

Sorry, I've overseen this...

EDIT:

In my LazY Precise Puppy it is stored in: /root/.config/rox.sourceforge.net/OpenWith/.application_initramfs-gz

_________________
LazY Puppy Home
The new LazY Puppy Information Centre

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 » Users ( For the regulars )
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.0706s ][ Queries: 12 (0.0107s) ][ GZIP on ]