Prevent your linux (with gnome) from hibernating when logged in with SSH
The following command adds a new script to your SSHD pam file which handles the preventing and reactivating functionalities.
currently work in progress
wget https://github.com/phips4/no-hibernate-when-ssh/master/install.sh && sudo bash ./install.sh && rm ./install.sh
- switched from .bashrc / .bash_logout to pam
- download and link script files
- provide an installation
- disable hibernate mode on ssh activity
- enable hibernate mode when all ssh sessions are closed
- move files into own directory (/etc/no-hibernate-when-ssh/)
- verify checksums on file download
- provide a way to check if no hibernate is active