mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-12-15 20:20:30 +00:00
12 lines
370 B
Bash
Executable File
12 lines
370 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
|
|
|
if [ -f /sys/class/rtc/rtc0/wakealarm ]; then
|
|
logger -t setwakeup.sh "### Setting system wakeup time ###"
|
|
echo 0 > /sys/class/rtc/rtc0/wakealarm
|
|
echo $1 > /sys/class/rtc/rtc0/wakealarm
|
|
logger -t setwakeup.sh "### $(cat /proc/driver/rtc) ###"
|
|
fi
|