Skip to content

Instantly share code, notes, and snippets.

View 1stcall's full-sized avatar

Carl McAlwane 1stcall

View GitHub Profile
@1stcall
1stcall / raspi-reset
Created October 30, 2023 08:00 — forked from yayuniversal/raspi-reset
raspi-reset
#!/bin/bash
BS=64M
DISK_ID=0x7788c428
ROOT_DEV=/dev/mmcblk0
BOOTFS_BACKUP=${ROOT_DEV}p3
BOOTFS_TARGET=${ROOT_DEV}p1
ROOTFS_BACKUP=${ROOT_DEV}p2
ROOTFS_TARGET=${ROOT_DEV}p4
if [ $EUID -ne 0 ]; then