14 lines
332 B
Bash
14 lines
332 B
Bash
#!/bin/bash
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
# Copyright (C) 2023-present Brooksytech (https://github.com/brooksytech)
|
|
|
|
. /etc/profile
|
|
|
|
# Enable verticle USB Port
|
|
echo host > /sys/kernel/debug/usb/fc000000.usb/mode
|
|
|
|
MYSLEEPMODE=$(get_setting system.suspendmode)
|
|
if [ -z "${MYSLEEPMODE}" ]
|
|
then
|
|
/usr/bin/setsuspendmode mem
|
|
fi
|