Hey Guys Merry X-Mas !
I need some help for a configuration file. I installed vdr in my OMV but my DVB-Card needs to be unloaded before going to suspend.
So i´ve created a script wich has to run before suspend and after wakeup. Unfortunately it doesn´t work.
I´ve tested the single commands before a suspend and after the wakeup manually in the CLI, so the commands are correct.
I think its something other wrong in my script or perhaps it´s in the wrong folder.
This is my Script:
Code
# Shutdown VDR and unload driver to not crash during suspend
. "${PM_FUNCTIONS}"
case "$1" in
hibernate|suspend)
#Stop VDR to make sure the DVB receiver is no longer busy
invoke-rc.d vdr stop
#unload the driver for the DVB receiver
rmmod rc_dvbsky
rmmod smipcie
rmmod dvb_core
rmmod dvbsky_m88ds3103
;;
resume|thaw)
#load module to use the DVB receiver again
modprobe rc_dvbsky
modprobe smipcie
modprobe dvb_core
modprobe dvbsky_m88ds3103
#start VDR again
invoke-rc.d vdr restart
;;
esac
Alles anzeigen
I´ve puted in as
Is this path correct and is the script ok?