wren-linux / extras / hardware-wallet.sh
#!/bin/bash
# retired: A hardware wallet is one more device to trust and keep. For most people the safer,
# simpler thing is to write the seed words on paper or metal and back them up on an encrypted
# USB stick (usb mount unlocks LUKS). The wallets it paired with (Sparrow, Electrum, Feather)
# are retired from the desktop too; Whonix has Electrum and Feather behind Tor.
# What is left of this extra is its --remove, for whoever still has it set up: update.sh offers
# it, and so does wrenctl remove hardware-wallet. It can't be installed any more.
# Usage: bash hardware-wallet.sh --remove
# summary: Hardware wallets over USB (Trezor, Ledger...)
# security: most
# category: money
# status: file:/etc/udev/rules.d/60-wren-hardware-wallets.rules
. "$(dirname -- "${BASH_SOURCE[0]}")/../lib.sh"
if [ "${1:-}" = --manual ]; then echo "Retired: only --remove is left (bash extras/hardware-wallet.sh --remove)."; exit; fi
need_user
RULE=/etc/udev/rules.d/60-wren-hardware-wallets.rules
[ "${1:-}" = --remove ] || die "hardware-wallet was retired. Back up your seed words on paper or metal, and on an encrypted USB stick: wrenctl install udiskie is gone, but usb mount unlocks LUKS."
sudo rm -f "$RULE"
sudo udevadm control --reload-rules 2>/dev/null || true
note "Hardware wallets are as Debian leaves them again (most need the rule to be reached)."