( cd usr/lib ; rm -rf libgphoto2_port.so.0 )
( cd usr/lib ; ln -sf libgphoto2_port.so.0.6.0 libgphoto2_port.so.0 )
( cd usr/lib ; rm -rf libgphoto2_port.so )
( cd usr/lib ; ln -sf libgphoto2_port.so.0.6.0 libgphoto2_port.so )
( cd usr/lib ; rm -rf libgphoto2.so.2 )
( cd usr/lib ; ln -sf libgphoto2.so.2.1.0 libgphoto2.so.2 )
( cd usr/lib ; rm -rf libgphoto2.so )
( cd usr/lib ; ln -sf libgphoto2.so.2.1.0 libgphoto2.so )

cp etc/hotplug/usb.usermap etc/hotplug/usb.usermap.new
chroot . usr/lib/libgphoto2/print-usb-usermap >> etc/hotplug/usb.usermap.new
