Code: Alles auswählen
#!/bin/sh
GRABBER='hyperion.config.grabber.json'
KODI='hyperion.config.kodi.json'
AUTOSTART='hyperion.config.json'
if ps | grep -v grep | grep $AUTOSTART > /dev/null
then
killall hyperiond
kodi-send -a "Notification(Hyperion Info,Ambilight für externe Geräte aktiviert,7000,http://powerpi.de/wp-content/uploads/powerpi/powerpi_ambi_thumb_hdmi.jpg)"
/storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion.config.grabber.json
</dev/null >/dev/null 2>&1 &
else
if ps | grep -v grep | grep $GRABBER > /dev/null
then
killall hyperiond
kodi-send -a "Notification(Hyperion Info,Ambilight für Kodi aktiviert,7000,http://powerpi.de/wp-content/uploads/powerpi/powerpi_ambi_thumb_kodi.jpg)"
/storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion.config.kodi.json
</dev/null >/dev/null 2>&1 &
else
if ps | grep -v grep | grep $KODI > /dev/null
then
killall hyperiond
kodi-send -a "Notification(Hyperion Info,Ambilight wurde ausgeschaltet,7000,http://powerpi.de/wp-content/uploads/powerpi/powerpi_ambi_thumb_off.jpg)"
else
kodi-send -a "Notification(Hyperion Info,Ambilight für externe Geräte aktiviert,7000,http://powerpi.de/wp-content/uploads/powerpi/powerpi_ambi_thumb_hdmi.jpg)"
/storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion.config.grabber.json
</dev/null >/dev/null 2>&1 &
fi
fi
fi