Set USB to always On to prevent SSD errors

This commit is contained in:
Taylor Helsper 2019-09-22 16:45:43 -05:00
parent 894aa51bb6
commit 79667c269f

View File

@ -47,6 +47,11 @@ do
sleep 10
done
# Disable autosuspend and enable USB drives
for dev in /sys/bus/usb/devices/*/power/control; do echo "on" > $dev; done
# Setup Drive
mkdir -p /mnt/hdd/mynode
mkdir -p /mnt/hdd/mynode/settings