0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-12-15 20:20:30 +00:00
2018-07-18 20:44:40 +02:00

17 lines
415 B
Bash

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
. /etc/profile
# see https://wiki.archlinux.org/index.php/Power_Management#Hooks_in_.2Fusr.2Flib.2Fsystemd.2Fsystem-sleep
for script in $HOME/.kodi/addons/*/sleep.d/*.power; do
if [ -f $script ]; then
progress "running addon sleep script $script ($@)..."
sh $script $@
fi
done
exit 0