Skip to content

Instantly share code, notes, and snippets.

@diginfo
Last active December 4, 2022 23:22
Show Gist options
  • Save diginfo/c4e6efb9f4f4824132f25046a9c3747b to your computer and use it in GitHub Desktop.
Save diginfo/c4e6efb9f4f4824132f25046a9c3747b to your computer and use it in GitHub Desktop.
#!/bin/bash
## bash <(curl -Ls https://gist.github.com/diginfo/c4e6efb9f4f4824132f25046a9c3747b/raw/)
##
function _init {
rpi-update
apt install -y dpkg-dev raspberrypi-kernel-headers linux-image-generic
reboot
}
function _install {
curl https://raw.githubusercontent.com/senses3/pimox7/master/RPiOS64-IA-Install.sh > RPiOS64-IA-Install.sh;
chmod +x RPiOS64-IA-Install.sh;
./RPiOS64-IA-Install.sh;
}
function _kernel {
wget http://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-kernel_1.20220120-1_arm64.deb
wget http://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-kernel-headers_1.20220120-1_arm64.deb
dpkg -i raspberrypi-kernel_1.20220120-1_arm64.deb raspberrypi-kernel-headers_1.20220120-1_arm64.deb
apt-mark hold raspberrypi-kernel raspberrypi-kernel-headers
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment