skip to content
>tuneout
← cd ~/projects
project · bash

flipi.sh

Blank SD card to fully kitted-out Flipper Zero in one script.

Keeping a Flipper Zero's SD card stocked with the good community stuff (Sub-GHz captures, the infrared remote database, NFC files) used to mean downloading zips, unzipping them, and dragging folders around in Finder. Then doing it all again a month later and wondering what had changed. flipi.sh does the whole thing in one run.

What it does

  1. Clones or updates three community repos: UberGuidoZ's Flipper collection, the Flipper-IRDB infrared database, and FlipperAmiibo. The first clone takes a while. After that it's a quick git pull.
  2. Finds the SD card. It lists the mounted volumes, flags the ones that look like a Flipper card, and asks before writing to anything that doesn't.
  3. Syncs each folder into its own spot on the card, like subghz/Uber, infrared/IRDB and nfc/Amiibo.
  4. Cleans up the macOS junk files and offers to eject the card.

The rules it follows

  • My own files are never touched. Everything the script writes lives in its own subfolders. Those get mirrored exactly, so anything removed upstream disappears from the card too, but my own captures elsewhere stay put.
  • Only things the Flipper can use. READMEs, images, scripts and archives are skipped, so the Flipper's file browser isn't full of clutter.
  • FAT-friendly. It syncs with rsync -rt instead of -a. The card's FAT file system can't store owners or permissions, so -a just throws errors.

Using it

terminal
./flipi.sh                 # pick the card from a menu
./flipi.sh "Flipper SD"    # name the volume directly
./flipi.sh --no-pull       # skip git updates, just sync

It's written for macOS, since it leans on /Volumes, diskutil and dot_clean.

now playing ·

0:00 0:00