manage_pre - A script to manage my Palm Pre on my OpenBSD machine. It is likely to be adaptable to other systems and should likely work for other WebOS devices, but changes will almost certainly be needed. Rather than calling as manage_pre you can symlink to different names to detect the action. Handles three actions: * mount or run as mount_pre Finds the device in the dmesg and mounts it it under /mnt/pre by default. * eject or run as eject_pre Ejects and unmounts the Pre, everything needed to get it out of disk mode. * sync or run as sync_pre If the Pre is not mounted, will mount then sync then eject it. If it is mounted, just syncs it. Currently uses Unison for synchronization. http://www.cis.upenn.edu/~bcpierce/unison/index.html $AFresh1: README,v 1.1 2010/03/10 19:35:40 andrew Exp $