[jp] Using jpilot with USB - how?

Bill Moseley moseley at hank.org
Wed Nov 29 17:06:17 EST 2006


On Wed, Nov 29, 2006 at 08:55:25PM +0000, cl at isbd.net wrote:
> I can't find any documentation on how to use jpilot with USB.  I've
> just transferred jpilot to a new system and have installed the latest
> slackware package which has in turn installed pilot-link 0.11.8.

Well, I use Debian not Slackware. I thought I had made careful
notes, but all I have are these notes from a few years back.  Not sure
if will apply to your system.  Hotplug has always been a bit of a
mystery to me. ;)

Palm Setup
-----------

    http://www.linuxpda.com/visor/howto/current/
    # apt-get install hotplug usbutils
    # apt-get install pilot-link (need version from unstable 0.11.4-1)   (hotplug??)
    # apt-get install jpilot (I got from unstable 0.99.3-2)



And then I have this:

$ cat /etc/hotplug/usb/jpilot-sync 
#!/bin/sh
# Mon May 16 13:11:50 PDT 2005 - moseley

ACTION=add

COMMAND="su - moseley -c jpilot-sync"

logger -t hotplug "$0 1 script started (ACTION: ${ACTION} DEVICE: ${DEVICE})..."

# We start all the stuff

if [ "${ACTION}" = "add" ]
#if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
then
        logger -t hotplug "starting jpilot-sync: ${COMMAND}"

        ${COMMAND}

        # create a remover script
        if [ "X$REMOVER" != "X" ]
        then
                logger -t hotplug "$0 Creating remover script: ${REMOVER}"
                mkdir -p /var/run/usb

                echo logger -t hotplug "$0 Remover script" > $REMOVER

                echo logger -t hotplug "unloading visor and usbserial modules..." >> $REMOVER
                echo rmmod visor >> $REMOVER
                echo rmmod usbserial >> $REMOVER
                chmod +x $REMOVER
        fi
fi

logger -t hotplug "$0 hotplug script finished..."

exit 0




Hum, I wonder why it's getting attached twice:

Nov 28 17:08:42 bumby kernel: usb 1-1: Handspring Visor / Palm OS converter now attached to ttyUSB0 (or usb/tts/0 for devfs)
Nov 28 17:08:42 bumby kernel: usb 1-1: Handspring Visor / Palm OS converter now attached to ttyUSB1 (or usb/tts/1 for devfs)




-- 
Bill Moseley
moseley at hank.org




More information about the Jpilot mailing list