#!/bin/bash

#mkswap /dev/sda1
mkswap /dev/sde1

dd if=/dev/zero of=/dev/ram0 bs=10M count=51

source saturn-lvm-init.sh
mount /dev/LVM/lvdisk  /opt/storage
   
mkdir -p /opt/storage/.ipfs
mkdir -p /opt/storage/download
mkdir -p /opt/storage/config
mkdir -p /opt/storage/app
mkdir -p /opt/storage/log

/opt/tool/saturn-ipfs-installer
sync

dd if=/dev/ram0 of=/dev/mmcblk1p13 bs=1024 seek=4096 count=64 conv=sync,fsync

mount /dev/sde3 /mnt
dd if=/dev/ram0 of=/mnt/uuid bs=1024 count=64 conv=sync,fsync
sync
umount /mnt
