pmaports/main/shutdown-clear-rtc-wakealarm/clear-rtc-wakealarm.shutdown.initd
Arnavion 69773b8cc5
main/shutdown-clear-rtc-wakealarm: new aport (MR 3905)
This contains an OpenRC service that clears the RTC wake alarm.
Users who don't want the RTC wake alarm to power on their phone from
powered-off state can use this service to clear the alarm during shutdown.

Fixes #1970

[ci:skip-build] already built successfully in CI
2023-02-28 14:45:04 -08:00

7 lines
123 B
Text

#!/sbin/openrc-run
description="Clear RTC wake alarm during shutdown"
start() {
echo 0 >/sys/class/rtc/rtc0/wakealarm
}