5e1a07666e
* Update documentation.
14 lines
267 B
Bash
Executable file
14 lines
267 B
Bash
Executable file
#!/bin/sh
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
# Copyright (C) 2022-present Fewtarius
|
|
|
|
. /etc/profile.d/001-functions
|
|
|
|
MYSLEEPMODE=$(get_setting system.suspendmode)
|
|
if [ -z "${MYSLEEPMODE}" ]
|
|
then
|
|
/usr/bin/suspendmode freeze
|
|
fi
|
|
|
|
echo s2idle >/sys/power/mem_sleep
|
|
|