Skip to content

Commit

Permalink
rc.shutdown :
Browse files Browse the repository at this point in the history
Added ask_to_save_function because a few forum
members are fond of such. Latest diff by SFR, but
code snips had been around for a few years by
several forum members. Reworked his diff into a function
to be used by PUPMODES 3 7 13 .
http://murga-linux.com/puppy/viewtopic.php?p=737246#737246
  • Loading branch information
Karl Godt committed Nov 15, 2013
1 parent 4138483 commit ef5ed74
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions woof-code/rootfs-skeleton/etc/rc.d/rc.shutdown
Expand Up @@ -150,6 +150,14 @@ killzombies() {
done
}

ask_to_save_function(){
clear >/dev/console
dialog --timeout 60 --yes-label "$(eval_gettext "SAVE")" --no-label "$(eval_gettext "NO SAVE")" --yesno "$(eval_gettext "Press ENTER key to save session...
Or, press TAB then ENTER to not save session...
Note : Timesout in 60 seconds to shutdown without saving.")" 0 0 >/dev/console
return $?
}

#100315 improper shutdown check. see /etc/rc.d/rc.sysinit, /init in initramfs, and /sbin/init...
if [ -f /fsckme.flg ];then
if [ -f /tmp/dmesg_e2fsck_warnings1 ];then #120717 rc.sysinit creates this file for full installation.
Expand Down

0 comments on commit ef5ed74

Please sign in to comment.