Mailinglist Archive: opensuse-factory (648 mails)
| < Previous | Next > |
Re: [opensuse-factory] NFS and hibernation [Solved]
- From: "Carlos E. R." <carlos.e.r@xxxxxxxxxxxx>
- Date: Fri, 12 Nov 2010 00:52:59 +0100 (CET)
- Message-id: <alpine.LNX.2.00.1011112241020.5900@xxxxxxxxxxxxxxxxx>
-----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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx
| < Previous | Next > |