#!/usr/bin/env bash set -euo pipefail # Robust flags.sh load — works from the repo checkout AND from # /usr/local/bin after install.sh (which copies lib/flags.sh there). source "$(dirname "$0")/../lib/flags.sh" 2>/dev/null || source "$(dirname "$0")/flags.sh" # ──────────────────────────────────────────────────────────────── # USB automount feature — auto-mounts removable USB storage. # # Installed on demand with: ./install.sh --feature # → copied to /usr/local/bin/usb-automount.sh (chmod 755) # → flag "usb-automount" is set # # Triggers: # - boot + hotplug via systemd/usb-automount.service (the udev # rule below is self-installed on first root run) # - manual: sudo usb-automount.sh # # Behavior: mounts every unmounted removable block device at # /media/