2023-09-04 14:54:35 +00:00
|
|
|
#!/bin/sh
|
2023-10-23 22:44:47 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2023-09-04 14:54:35 +00:00
|
|
|
# Copyright (C) 2022-present Fewtarius
|
2023-06-23 03:14:11 +00:00
|
|
|
|
2023-09-04 14:54:35 +00:00
|
|
|
. /etc/profile.d/001-functions
|
2023-06-23 03:14:11 +00:00
|
|
|
|
|
|
|
MYSLEEPMODE=$(get_setting system.suspendmode)
|
|
|
|
if [ -z "${MYSLEEPMODE}" ]
|
|
|
|
then
|
2023-10-15 02:18:17 +00:00
|
|
|
/usr/bin/suspendmode freeze
|
2023-06-23 03:14:11 +00:00
|
|
|
fi
|
|
|
|
|
2023-09-01 14:33:59 +00:00
|
|
|
echo s2idle >/sys/power/mem_sleep
|
2023-09-04 14:54:35 +00:00
|
|
|
|