ManfredK2;370347 Wrote: > @gharris999 > > Hi, > > i am running your tool on my Duet an a standalone Ubunu 8.10-Server on > Dell SX270. Works perfect :-) Now I am looking for a solution to > unmount my networkshare on QNAP 109 II NAS before going to standby. > QNAP 109 II only spins down harddisk if there is no samba connection to > it. > > Is it possible to modify the script so that a "umount /media/nas" is > done before sending the Dell to suspend? > > Greetings > Manfred To specifically answer your question, yes, it is possible. The command line that SrvrPowerCtrl executes to initiate suspending can point to anything, including your own script. It just has to be executable by the squeezecenter user via permissions in /etc/sudoers.
So yes, you could write a script that umounts before calling pm-suspend. However, SrvrPowerCtrl, at this stage in it's development, doesn't have a clue when a system comes out of suspend. So it's not like it will be smart enough to remount the qnap's share when the system wakes up. So, I'd try the methods outlined in the previous posts. They're independent of SrvrPowerCtrl and directly tied into the suspend/wake events on your system. -- gharris999 ------------------------------------------------------------------------ gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115 View this thread: http://forums.slimdevices.com/showthread.php?t=48521 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/plugins
