#!/bin/sh

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)

. /etc/profile

oe_setup_addon driver.dvb.sundtek-mediatv

if [ "$SUSPEND_DRIVER" = "true" ]; then
  case "$1" in
    pre)
      systemctl stop driver.dvb.sundtek-mediatv.service
      ;;
    post)
    	systemctl start driver.dvb.sundtek-mediatv.service
      ;;
  esac
fi
