Thanks micko. I'm very happy with the outcome.
I have modified the /etc/rc.d/rc.shutdown as follows:
Code: Select all
13) #PDEV1 and PUPSFS and PUPSAVE
#/initrd/pup_rw has tmpfs, pup_ro1 has ${DISTRO_FILE_PREFIX}save.2fs file (PUPSAVE), pup_ro2 has PUPSFS file.
#the above are in unionfs at /.
if [ ! -f "/tmp/No_save" ];then
#start big if
#All the snapmerge stuff happens here
echo "`eval_gettext \"Saving session to \\\${SAVEFILE} (\\\${SAVEPART})...\"`" >/dev/console
#echo "Saving session to $SAVEFILE (${SAVEPART})..." >/dev/console
/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw
fi #end big if
;;
Code: Select all
#!/bin/sh
echo "test" > /tmp/No_save
/usr/bin/wmpoweroff
Many thanks for the help!