distribution/packages/hardware/quirks/devices/Orange Pi 5/001-hardwareinit

15 lines
332 B
Text
Raw Normal View History

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
MYSLEEPMODE=$(get_setting system.suspendmode)
if [ -z "${MYSLEEPMODE}" ]
then
/usr/bin/setsuspendmode mem
fi