apolloapi-v2/backend/start_swap.sh
John bee143b3fe Backend Image Updates
Add NVME Swap memory, update first run scripts.
2021-07-30 15:28:17 -04:00

9 lines
121 B
Bash
Executable File

#!/bin/bash
DEVICE=/dev/nvme0n1p1
if [ -b "$DEVICE" ]; then
swapon /media/nvme/swapfile
else
exit 0
fi