Thanks Mav - all AOK in my testsmavrothal wrote:Please test, either by patching or using the attached pet
Cheers
peebee
Thanks Mav - all AOK in my testsmavrothal wrote:Please test, either by patching or using the attached pet
Works fine on patched TahrPup 6.0.mavrothal wrote:Please test, either by patching or using the attached pet
Code: Select all
if [ $RAMSAVEINTERVAL = 0 ] ; then #141118, Marv
ASKTOSAVE=true
else
ASKTOSAVE=false
fi
Not in X-slacko currently but in Tahr/Slacko6 the ASKTOSAVE variable is set from the eventmanager > Save Session tab.Marv wrote: Looking at rc.shutdown, a variable ASKTOSAVE is present but not set.
Thanks, that makes sense. For now I'll export it (set to false) from /etc/profile.local in X-slacko leaving rc.shutdown untouched.mavrothal wrote:Not in X-slacko currently but in Tahr/Slacko6 the ASKTOSAVE variable is set from the eventmanager > Save Session tab.Marv wrote: Looking at rc.shutdown, a variable ASKTOSAVE is present but not set.
As soon as "Save interval" is set to "0" an 'ask to save' checkbox appears.
Code: Select all
--- snapmergepuppy.orig 2014-10-06 18:01:55.000000000 +1000
+++ snapmergepuppy 2014-11-24 04:36:28.138255092 +1000
@@ -62,6 +62,7 @@
if [ -L $BASE ]; then #we have savefolder based on symbolic links
BASEMTP="/initrd${PUP_HOME}"
+ BASE="`readlink -n -m $BASE`"
else
BASEMTP="$BASE"
fi
Code: Select all
--- snapmergepuppy.orig 2014-11-27 03:29:05.466244219 +1000
+++ snapmergepuppy 2014-11-27 03:17:33.000000000 +1000
@@ -143,6 +143,8 @@
while read N
do
+ [ "${N%%/*}" = "dev" ] && [ "${N:4:3}" = "tty" ] && continue
+
#v4.01 graceful exit if shutdown X (see /usr/X11R7/bin/restartwm,wmreboot,wmpoweroff)...
[ "$XRUNNING" = "yes" ] && [ -f /tmp/wmexitmode.txt ] && exit