if [[ -d ${INSTALL_ROOT}/etc/hotplug ]] ; then if [[ -f ${INSTALL_ROOT}/etc/hotplug/usb.usermap ]] ; then echo "removing old camera definitions" sed -i -e "/^#\[ libgphoto2:/,/^#\] libgphoto2:/d;/^usbcam/d" \ ${INSTALL_ROOT}/etc/hotplug/usb.usermap fi rm -f ${INSTALL_ROOT}/etc/hotplug/usb/usbcam.usermap fi