Skip Navigation
Jump
I made a script to remotely reflash a Raspberry Pi
  • Great!

    It would even be easier to get the DISK_ID directly in the script, at its beginning (but after the check about being root):

    DISK_ID=$(sfdisk --disk-id /dev/mmcblk0)
    
    1