1
0
This repository has been archived on 2024-11-10. You can view files and clone it, but cannot push or open issues or pull requests.
Lakka-rk322x/packages/mediacenter/kodi/sleep.d.serial/20-custom-sleep.sh
2018-07-18 20:44:40 +02:00

17 lines
409 B
Bash
Executable File

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2013 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/.config/sleep.d/*.power; do
if [ -f $script ]; then
progress "running custom sleep script $script ($@)..."
sh $script $@
fi
done
exit 0