distribution/packages/hardware/quirks/devices/Anbernic RG552/001-hardwareinit

14 lines
286 B
Text
Raw Normal View History

2023-06-23 03:14:11 +00:00
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
. /etc/profile
MYSLEEPMODE=$(get_setting system.suspendmode)
if [ -z "${MYSLEEPMODE}" ]
then
/usr/bin/setsuspendmode freeze
fi
echo s2idle >/sys/power/mem_sleep