#!/bin/bash # Generate a HAL device information file exporting what cameras are supported # by libgphoto2. # # This script was coded by Pozsar Balazs and slightly # tweaked by David Zeuthen . cat < EOF /usr/lib/libgphoto2/print-usb-usermap | grep -v '^#' | tr -s ' ' | cut -d' ' -f 3,4 | sort -u | grep -v "^0x0000" | while read ven dev; do cat < camera camera libgphoto2 EOF done cat < EOF