PATH=/bin:/usr/bin/:/usr/sbin:/sbin:$PATH:

#kill processes working in nfs-mounted fs
lsof /home | awk '{print $2}' | grep -v PID|xargs kill -1
sleep 2
lsof /home | awk '{print $2}' | grep -v PID|xargs kill -9
#unmount nfs fs
umount /home&
sleep 1
umount -f /home&
#shutdown nfs server
/usr/bin/rsh manolito halt &
sleep 5
halt
