-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

When searching how to configure hotsyncing for my Palm Zire 71 i'v read a lot 
of questions about what ttyUSB port to use and link to /dev/palm. It seems 
when you have other serial devices it becomes quite difficult to get the 
right port so i wrote a small script to be placed in /etc/hotplug/usb
The Script will take care of linking the /dev/pilot to the correct port when 
the hotsync button is pressed.

#!/bin/bash

if [ "${ACTION}" = "add" ]
then
    PORT=`grep visor /proc/tty/driver/usb-serial | tail -n 1 | sed "s/://g" | 
awk '{print $1}'`
    rm -f /dev/pilot
    ln -s /dev/ttyUSB$PORT /dev/pilot
    /usr/bin/logger -t visor "Linking /dev/ttyUSB$PORT to /dev/pilot"
    echo "#!/bin/bash" > $REMOVER
    echo "rm -f /dev/pilot" >> $REMOVER
    echo "rmmod visor" >> $REMOVER
    chmod 755 $REMOVER
fi

Please reply offlist as i'm not subscribed.
- -- 
Simple things make people happy.
Willy De la Court
PGP Public Key at http://www.linux-lovers.be/download/public_key.asc
PGP Key fingerprint = 784E E18F 7F85 9C7C AC1A D5FB FE08 686C 37C7 A689
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/3bsU/ghobDfHpokRAoLuAKDZc23YDwC9jwlXJlDN0vToDe1UwQCfXVaF
q3T1P2uICPdn1ZDddUkhRLE=
=N0aM
-----END PGP SIGNATURE-----



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to