root@onecloud:~#cat/etc/rc.local
#!/bin/bash# Set OneCloud front-panel LED to greenecho"default-on">/sys/class/leds/onecloud\:green\:alive/trigger
echo"none">/sys/class/leds/onecloud\:red\:alive/trigger
echo"none">/sys/class/leds/onecloud\:blue\:alive/trigger
# Lock CPU frequency to avoid ustreamer frame disorder causing random black screens# You may raise or overclock based on `cpufreq-info` output if neededcpufreq-set-d1200MHz-u1200MHz
# Start kvmd after locking frequency so all services run at a static CPU frequencysystemctldisablekvmd&&systemctlstopkvmd
systemctlstartkvmd
# Set OTG port to device modeechodevice>/sys/class/usb_role/c9040000.usb-role-switch/role
# Exit scriptexit0