I see hibernation into swap file support in the script. Is it possible to specify swapfile in different place?
Let's say, / mounted on small SSD and /home is mounted on large HDD. It is preferable to hibernate to /home/swapfile to prevent SSD wear and keep SSD free.