deploy the native patch earlier during first boot
This commit is contained in:
parent
ad926a2821
commit
e86d052f5a
3 changed files with 7 additions and 5 deletions
|
@ -47,6 +47,7 @@ wget https://github.com/DISTRHO/Cardinal/releases/download/24.09/Cardinal-linux-
|
||||||
tar -xzvf /tmp/rpi-img/opt/Cardinal/Cardinal-linux-aarch64.tar.gz -C /tmp/rpi-img/opt/Cardinal/ CardinalNative
|
tar -xzvf /tmp/rpi-img/opt/Cardinal/Cardinal-linux-aarch64.tar.gz -C /tmp/rpi-img/opt/Cardinal/ CardinalNative
|
||||||
|
|
||||||
# setup GUI payload
|
# setup GUI payload
|
||||||
|
cp -v ./src/payload.service /tmp/rpi-img/lib/systemd/system/payload.service
|
||||||
ln -v -s /lib/systemd/system/payload.service /tmp/rpi-img/etc/systemd/system/graphical.target.wants
|
ln -v -s /lib/systemd/system/payload.service /tmp/rpi-img/etc/systemd/system/graphical.target.wants
|
||||||
|
|
||||||
echo "] press enter to write the image"
|
echo "] press enter to write the image"
|
||||||
|
|
|
@ -11,6 +11,7 @@ Restart=always
|
||||||
RestartSec=10s
|
RestartSec=10s
|
||||||
KillMode=process
|
KillMode=process
|
||||||
TimeoutSec=infinity
|
TimeoutSec=infinity
|
||||||
|
ConditionFileNotEmpty=/home/pi/Documents/templates/native.vcv
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=graphical.target
|
WantedBy=graphical.target
|
||||||
|
|
10
src/setup.sh
10
src/setup.sh
|
@ -1,5 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# 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/
|
||||||
|
|
||||||
# upgrade system
|
# upgrade system
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get upgrade -y
|
apt-get upgrade -y
|
||||||
|
@ -15,11 +20,6 @@ apt-get install ufw -y
|
||||||
ufw allow ssh
|
ufw allow ssh
|
||||||
ufw enable
|
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
|
# cleanup
|
||||||
mv /root/setup.sh /root/setup.sh.done
|
mv /root/setup.sh /root/setup.sh.done
|
||||||
chmod -x /root/setup.sh.done
|
chmod -x /root/setup.sh.done
|
||||||
|
|
Loading…
Reference in a new issue