mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-27 20:56:55 +00:00
sundtek-mediatv: prepare for systemd
This commit is contained in:
parent
7cdfb91a31
commit
b35551ba0f
@ -39,7 +39,7 @@ if [ "$SUSPEND_DRIVER" = "true" ]; then
|
|||||||
LOCKFILE="$LOCKDIR/sundtek-mediatv"
|
LOCKFILE="$LOCKDIR/sundtek-mediatv"
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
hibernate|suspend)
|
hibernate|suspend|pre)
|
||||||
if [ -n "$(pidof mediasrv)" ]; then
|
if [ -n "$(pidof mediasrv)" ]; then
|
||||||
progress "Shutting down Sundtek DVB driver for suspending..."
|
progress "Shutting down Sundtek DVB 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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user