mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-03-01 10:21:22 +00:00
22 lines
422 B
Bash
22 lines
422 B
Bash
#!/bin/sh
|
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
|
|
|
. /etc/profile
|
|
|
|
SERVICE="service.multimedia.boblightd.service"
|
|
|
|
case "$1" in
|
|
pre)
|
|
if systemctl is-active "$SERVICE" &>/dev/null ; then
|
|
systemctl stop "$SERVICE"
|
|
fi
|
|
;;
|
|
post)
|
|
if systemctl is-enabled "$SERVICE" &>/dev/null ; then
|
|
systemctl start "$SERVICE"
|
|
fi
|
|
;;
|
|
esac
|