diff --git a/prepare-image.sh b/prepare-image.sh index 71db26e..23bdaab 100755 --- a/prepare-image.sh +++ b/prepare-image.sh @@ -27,8 +27,9 @@ mkdir /tmp/rpi-img/home/pi/.ssh chown 1000:1000 /tmp/rpi-img/home/pi/.ssh chown 1000:1000 /tmp/rpi-img/home/pi/.ssh/authorized_keys -#provision scripts +#provision files cp -v ./src/setup.sh /tmp/rpi-img/root/setup.sh +cp -v ./patch/native.vcv /tmp/rpi-img/root/native.vcv #enable systemd-time-wait-sync ln -v -s /lib/systemd/system/systemd-time-wait-sync.service /tmp/rpi-img/etc/systemd/system/sysinit.target.wants/systemd-time-wait-sync.service @@ -48,9 +49,6 @@ tar -xzvf /tmp/rpi-img/opt/Cardinal/Cardinal-linux-aarch64.tar.gz -C /tmp/rpi-im # setup GUI payload ln -v -s /lib/systemd/system/payload.service /tmp/rpi-img/etc/systemd/system/graphical.target.wants -# deploy native patch -cp -v ./patch/native.vcv /tmp/rpi-img/home/pi/Documents/templates/native.vcv - echo "] press enter to write the image" read diff --git a/src/setup.sh b/src/setup.sh index 84a86bf..bc9c199 100755 --- a/src/setup.sh +++ b/src/setup.sh @@ -15,6 +15,11 @@ apt-get install ufw -y ufw allow ssh ufw enable +# deploy native patch +mkdir -vp /home/pi/Documents/templates/ +cp -v /root/native.vcv /home/pi/Documents/templates/native.vcv +chown -R pi:pi /home/pi/Documents/templates/ + # cleanup mv /root/setup.sh /root/setup.sh.done chmod -x /root/setup.sh.done