Skip to content

Commit

Permalink
feat: Store files in RAM
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Jan 13, 2024
1 parent a1100a0 commit f5baa38
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/reset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,16 @@ VERS=$(qemu-system-x86_64 --version | head -n 1 | cut -d '(' -f 1)
# Check folder

STORAGE="/storage"
[ ! -d "$STORAGE" ] && error "Storage folder ($STORAGE) not found!" && exit 13
if [ ! -d "$STORAGE" ]; then
error "Storage folder ($STORAGE) not found!" && exit 13
fi

if [ ! -d "/run/shm" ]; then
ln -s /dev/shm /run/shm
if [ -d "/dev/shm" ]; then
ln -s /dev/shm /run/shm
else
error "Folder /dev/shm not found!" && exit 14
fi
fi

# Cleanup files
Expand Down

0 comments on commit f5baa38

Please sign in to comment.