Package: pm-utils Version: 1.1.2.4-1 Severity: wishlist Hi, please provide a sleep scriptlet to unmount network filesystems. I am currently using this basically copied from /etc/init.d/umountnfs.sh which does more than needed (unmounting sysfs etc) ... This needs to be done before network manager is instructed to shut down networking e.g. i used priority 07 ...
#!/bin/sh
FLAGS="-f -l"
case "$1" in
hibernate|suspend)
exec 9<&0 </etc/mtab
DIRS=""
while read DEV MTPT FSTYPE OPTS REST
do
case "$FSTYPE" in
nfs|nfs4|smbfs|ncp|ncpfs|cifs|coda|ocfs2|gfs)
DIRS="$MTPT $DIRS"
;;
*)
continue
;;
esac
done
exec 0<&9 9<&-
if [ "$DIRS" ]
then
umount $FLAGS $DIRS
ES=$?
fi
;;
thaw|resume)
;;
*) exit $NA
;;
esac
--
Florian Lohoff [EMAIL PROTECTED] +49-171-2280134
Those who would give up a little freedom to get a little
security shall soon have neither - Benjamin Franklin
signature.asc
Description: Digital signature

