From 19f76c3f10299cb9b363e51a63f5652271e07f59 Mon Sep 17 00:00:00 2001 From: Zakary Timson Date: Mon, 28 Oct 2024 16:31:38 -0400 Subject: [PATCH] Update README.md --- README.md | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 90b3aa2..2cdbf6e 100644 --- a/README.md +++ b/README.md @@ -3,25 +3,7 @@ ## Setup ```sh sudo apt update && sudo apt upgrade -y -sudo apt install htop i2c-tools -raspi-config # enable i2c -``` - -### MAC fix -```sh -MAC_PREFIX="80:86:00" - -files=( - "/etc/systemd/network/eth0.network" - "/etc/systemd/network/wlan0.network" -) - -for file in "${files[@]}"; do - if [ -n "$(cat $file | grep MACAddress )" ]; then continue; fi - mac_address=$(printf '%02X:%02X:%02X' $((RANDOM % 256)) $((RANDOM % 256)) $((RANDOM % 256))) - cat <> "$file" -[Link] -MACAddress=$MAC_PREFIX:$mac_address -EOF -done +sudo apt install htop i2c-tools hwclock +raspi-config # enable i2c & UART +echo "@reboot root hwclock -s" >> /etc/crontab ```