12 lines
248 B
Text
12 lines
248 B
Text
|
#!/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 mem
|
||
|
fi
|