Why don't you create yourself a nice little shutdown gui with a checkbox called "save session" or something, , have it checked by default, when unchecked it produces a signal and then that can create a flag in /tmp called "No_save" or whatever.
In rc.shutdown, you will see a big "case" statement with quite a few cases. Find the one "13)". Now you test for the condition of whether "/tmp/No_save" exists and if so don't run the snapmerge. Something like:
Code: Select all
13)
if [ ! -f /tmp/No_save" ];then #start big if
All the snapmerge stuff happens here
fi #end big if
;;
next_case)whatever