How To Set Up a Raspberry Pi 4 with Archlinux 64-bit (AArch64) and Full Disk Encryption (+SSH unlock), USB Boot (No SD-Card) and btrfs
Written by: XSystem
First published on: 20 Dec 2020
Last updated on: 20 Dec 2020
#!/bin/sh | |
echo "# 24-bit (true-color)" | |
# based on: https://gist.github.com/XVilka/8346728 | |
term_cols="$(tput cols || echo 80)" | |
cols=$(echo "2^((l($term_cols)/l(2))-1)" | bc -l 2> /dev/null) | |
rows=$(( cols / 2 )) | |
awk -v cols="$cols" -v rows="$rows" 'BEGIN{ | |
s=" "; | |
m=cols+rows; |