hdhomerun: prepare for systemd

This commit is contained in:
Stefan Saraev 2013-08-29 18:22:32 +03:00
parent 3496e47da4
commit 7cdfb91a31

View File

@ -39,7 +39,7 @@ if [ "$SUSPEND_DRIVER" = "true" ]; then
LOCKFILE="$LOCKDIR/hdhomerun" LOCKFILE="$LOCKDIR/hdhomerun"
case "$1" in case "$1" in
hibernate|suspend) hibernate|suspend|pre)
if [ -n "$(pidof userhdhomerun)" ]; then if [ -n "$(pidof userhdhomerun)" ]; then
progress "Shutting down HDHomeRun driver for suspending..." progress "Shutting down HDHomeRun driver for suspending..."
mkdir -p "$LOCKDIR" mkdir -p "$LOCKDIR"
@ -48,7 +48,7 @@ if [ "$SUSPEND_DRIVER" = "true" ]; then
fi fi
;; ;;
thaw|resume) thaw|resume|post)
if [ -f "$LOCKFILE" ]; then if [ -f "$LOCKFILE" ]; then
# driver started within Tvheadend/VDR # driver started within Tvheadend/VDR
rm -f "$LOCKFILE" rm -f "$LOCKFILE"