[wellylug] Digital camera or Mass storage device
Edouard Chalaron
e.chalaron at paradise.net.nz
Tue Sep 30 08:55:26 NZST 2003
Peter
Try this, it should work.
I have this :
drwxr-xr-x 2 root root 4096 fév 19 2003 camera/
then
/etc/mtab has :
none /proc/bus/usb usbdevfs rw,devmode=0664,devgid=43 0 0
and you have to modify
rep2="/mnt/camera/dcim/100MSDCF"
by
rep2="/mnt/camera/whatever_suitable_for_your_camera"
(found on the owner manual)
[edouard at wairarapa edouard]$ more /usr/bin/camera
#!/bin/sh
clear
echo
echo " Script pour SONY PC101E par Edouard"
echo
echo
rep="News-Photos"
nume=1
rep1=$rep$nume
rep2="/mnt/camera/dcim/100MSDCF"
repbase=~
error()
{
echo
echo "***********************"
echo "$1"
echo "***********************"
echo
sleep 10
exit 1
}
demonte()
{
echo "-> Démontage du SONY PC101E ..."
umount /mnt/camera || error "-> Cannot umount !"
}
nrep()
{
rep="News-Photos"
let nume=nume+1
rep1=$rep$nume
}
cd $repbase
while [ -d "$rep1" ]
do nrep
done
if mount | grep camera> /dev/null 2>&1; then
echo "-> Camera is already mounted !"
else
echo "-> Camera being Mounted..."
mount /mnt/camera || error "-> !"
fi
echo "-> Create directory "$repbase"/"$rep1" ..."
mkdir $rep1 || error "-> Can not create directory !"
if [ ! -d "$rep2" ]
then
echo "-> Nothing on the memory card !"
rmdir $rep1
demonte
error "-> Transfert has been interrupted ! "
fi
echo "-> Copy picts in : "$rep1
for f in `find $rep2 -type f -print` ; do
echo "-> $f ..."
cp $f $repbase"/"$rep1
let phot=phot+1
done
demonte
echo "-> OK finished..."
if [ $(($phot >= 2)) = 1 ] ;
then
echo "-> "$phot" files succesfully transfered ..."
else
echo "-> "$phot" file succesfully transfered ..."
fi
echo
echo
> Trying to connect a Olympus C5050z to a Mandrake 9.1 linux box
> hopefully without resorting to a card reader.
> GTKam (gphoto2) detects a C2040z same camera reading fewer pixels, but
> theres no module? does this mean compiling kernals??
> Googling around the World, a frenchman www.teaser.fr goes straight in with
> a sierra driver or others refer to a kernal driver bypassing software but
> this does not help a Noob
> Anyone with firsthand experience taming these beasties
More information about the wellylug
mailing list