Files
scan-color-samples/setup-udev.sh
2026-07-13 08:10:24 +03:30

23 lines
601 B
Bash
Executable File

#!/usr/bin/env bash
# Install ArgyllCMS udev rules so the i1Pro 2 is accessible without root.
set -euo pipefail
ARGYLL_USB="${HOME}/.local/bin/Argyll_V3.4.1/usb"
RULES_SRC="${ARGYLL_USB}/55-Argyll.rules"
RULES_DST="/etc/udev/rules.d/55-Argyll.rules"
if [[ ! -f "$RULES_SRC" ]]; then
echo "Error: $RULES_SRC not found" >&2
exit 1
fi
echo "Installing udev rules for ArgyllCMS / i1Pro..."
sudo cp "$RULES_SRC" "$RULES_DST"
sudo udevadm control --reload-rules
sudo udevadm trigger
echo ""
echo "Done. Unplug the i1Pro 2, wait 2 seconds, then plug it back in."
echo "Verify with: spotread -?"