2010-12-04, 18:08
I've been having issues with the stability of my XBMC setup when coming out of standby-S3 that I believe are directly related to my autofs mounts not gracefully remounting. Doing some web scouring I found a few scripts here and there and peiced this one together which has helped tremendously.
It works by automatically stopping autofs when going into standby and when resuming, it waits 3 seconds for network to come back up, then starts autofs.
I named the file "97autofs" and placed it in "/usr/lib/pm-utils/sleep.d"
Script contents below:
Note: You may have to choose a different number from 97, just pick the highest available number less than 100 that's available in the directory.
Once the file is created you will have to set the proper permissions on it
#chmod 755 97autofs
Let me know if this works for you
It works by automatically stopping autofs when going into standby and when resuming, it waits 3 seconds for network to come back up, then starts autofs.
I named the file "97autofs" and placed it in "/usr/lib/pm-utils/sleep.d"
Script contents below:
Quote:#!/bin/sh
##
## suspend-example.sh
##
case $1 in
suspend)
## COMMANDS THAT YOU WISH TO RUN BEFORE SUSPEND
/etc/init.d/./autofs stop
;;
resume)
## COMMANDS THAT YOU WISH TO RUN AFTER RESUME
sleep 3
/etc/init.d/./autofs start
;;
hibernate)
## COMMANDS THAT YOU WISH TO RUN BEFORE HIBERNATE
/etc/init.d/./autofs stop
;;
thaw)
## COMMANDS THAT YOU WISH TO RUN AFTER RESUME FROM SUSPEND TO DISK
sleep 3
/etc/init.d/./autofs start
;;
esac
Note: You may have to choose a different number from 97, just pick the highest available number less than 100 that's available in the directory.
Once the file is created you will have to set the proper permissions on it
#chmod 755 97autofs
Let me know if this works for you