rc.shutdown in 5.1

What features/apps/bugfixes needed in a future Puppy
Post Reply
Message
Author
vaza
Posts: 10
Joined: Mon 24 May 2010, 21:15

rc.shutdown in 5.1

#1 Post by vaza »

I struggled to get 5.01 to shutdown without saving and now the rc.shutdown in 5.1 has changed. I've tried to make similar changes but nothing works. The text in 5.1 is different, the how to I used doesn't cross over.
USB Flash drive install.
Frustrated newbie
Love the PuP

vaza
Posts: 10
Joined: Mon 24 May 2010, 21:15

#2 Post by vaza »

I finally got it to work following the rc.shutdown instructions. It now prompts my usb install with a yes or no for save at shutdown. On reboot I always get the improper shutdown prompt, doesn't seem to matter. I always got that message with the other versions.

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#3 Post by 8-bit »

Can you post instruction for what you did to accomplish this.
Others with an install on a USB stick may like to keep their settings pristine.

vaza
Posts: 10
Joined: Mon 24 May 2010, 21:15

#4 Post by vaza »

In Lucid 5.1.1
Opened the console and type:

geany /etc/rc.d/rc.shutdown

Scroll down about 3/4 of the page. I look for the number 13 on the left side. A few lines below that you should see:


#the above are in unionfs at /.

You need to add text on the next line so it looks like this when you’re done.


#the above are in unionfs at /.
dialog --yesno "Save this session?" 0 0 >/dev/console
if [ $? -eq 0 ]; then
echo "Saving session to $SAVEFILE (${SAVEPART})..." >/dev/console
/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw
fi
;;

Don’t forget to save your mod when you close geany.
I always get a click through prompt on reboot about improper shutdown or such.
It’s never been a problem, anyone know about that. Curious for sure.

Post Reply