2023-01-09 22:26:15 +00:00
|
|
|
#!/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
|
2023-06-02 20:58:46 +00:00
|
|
|
|
|
|
|
MYSLEEPMODE=$(get_setting system.suspendmode)
|
|
|
|
if [ -z "${MYSLEEPMODE}" ]
|
|
|
|
then
|
|
|
|
/usr/bin/setsuspendmode mem
|
|
|
|
fi
|