This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BASE=/usr/local/bin | |
RELAY_PIN=17 | |
VPATH=/srv/ftp | |
if [ "$1" == "-r" ]; then | |
sudo rm $BASE/relay.sh | |
sudo rm $BASE/videoloop.sh | |
sudo rm /etc/cron.d/videoloop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/aarch64/alpine-virt-3.15.0-aarch64.iso -O alpine.iso #or whatever versions suits you best | |
dd if=alpine.iso of=/dev/sda | |
mkdir /media/setup | |
cp -a /media/sda/* /media/setup | |
mkdir /lib/setup | |
cp -a /.modloop/* /lib/setup | |
/etc/init.d/modloop stop | |
umount /dev/sda | |
mv /media/setup/* /media/sda/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#The steps are simple | |
#You would need to get the machine to boot into a live os in ram so as to allow | |
#modifications from within the machine without having to set up using another. | |
#One way to do it is to boot an alpine img: | |
wget https://dl-cdn.alpinelinux.org/alpine/v3.14/releases/aarch64/alpine-virt-3.14.2-aarch64.iso -O alpine.iso #or whatever versions suits you best | |
dd if=alpine.iso of=/dev/sda | |
#Now you have to reboot the system. If 'sudo reboot' doesn't work, try hard | |
#reboot from the OCI Console |