#!/bin/sh
sudo apt update
cd /home/pi
# sudo bash
apt-get install -y git rsync gawk busybox bindfs subversion
dphys-swapfile swapoff
dphys-swapfile uninstall
update-rc.d dphys-swapfile disable
systemctl disable dphys-swapfile
#git clone https://github.com/josepsanzcamp/root-ro.git
svn co http://nas-27-59-fd/svn/root-ro   --non-interactive --no-auth-cache --username jin --password jin
rsync -va root-ro/etc/initramfs-tools/* /etc/initramfs-tools/
mkinitramfs -o /boot/initrd.gz
echo initramfs initrd.gz >> /boot/config.txt
mkdir -p /media/netdir
# echo  192.168.1.220   nas-48-71-3b  >>  /etc/hotsa

reboot

