-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday, 2010-11-11 at 12:40 +0100, Carlos E. R. wrote: This script will abort the hibernate process if there is an NFS mount active. I propose that somebody takes this (modified as appropiate) and add it to all active releases. At least for factory (Bug 568132) /etc/pm/sleep.d/5nfscheck: #!/bin/bash . /usr/lib/pm-utils/functions RETVAL=0 case "$1" in hibernate|suspend) MONTADO=`mount | grep "type nfs" | grep -v "/proc/fs/nfsd"` if test -n "$MONTADO" ; then RETVAL=1 #This does not abort. touch $INHIBIT #This does. MESSAGE="Aborting hibernation process because there is an NFS mount active. Touched $INHIBIT" /bin/logger -t pm-utils -p syslog.warn $MESSAGE echo -e "$MESSAGE\r" > /dev/tty0 echo -e "--> $MONTADO\r" > /dev/tty0 echo "$MESSAGE Touched $INHIBIT" fi ;; thaw|resume) ;; *) ;; esac exit $RETVAL # Idea for $INHIBIT in /usr/lib/pm-utils/sleep.d/30s2disk-check - -- Cheers, Carlos E. R. (from 11.2 x86_64 "Emerald" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) iEYEARECAAYFAkzcgeIACgkQtTMYHG2NR9Uj6ACfVaeliEMrr1GpFBVosgCZ5rDC sYYAn0TMCVNh8psvk6lZ60ge/0KqoVjz =zFOa -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org