tvheadend: sleep/resume: do not load modules on resume if tvheadend not started before suspend

This commit is contained in:
Stefan Saraev 2013-04-15 19:21:36 +03:00
parent 43b17bd1bb
commit cb0148b4a5

View File

@ -41,11 +41,11 @@ case "$1" in
;;
thaw|resume)
for module in $REMOVE_MODULES ; do
modprobe $module
done
progress "Restarting HTS TVHeadend for wakeup..."
if [ -f "$LOCKFILE" ] ; then
progress "Restarting HTS TVHeadend for wakeup..."
for module in $REMOVE_MODULES ; do
modprobe $module
done
rm -rf "$LOCKFILE"
tvheadend.start
fi