X-Git-Url: https://git.phdru.name/?p=extfs.d.git;a=blobdiff_plain;f=obexftp;h=44427379481d03422ca7996b3c04eebedffb4a48;hp=13963bec7cba27fbb6462a3c3135dc75edcd704e;hb=c1fd444890ddd1bb30699e88037ff9815e9a10ff;hpb=a315c1aad5bb6a288e1406e2c3d439948784a9cb diff --git a/obexftp b/obexftp index 13963be..4442737 100755 --- a/obexftp +++ b/obexftp @@ -2,10 +2,6 @@ """ObexFTP Virtual FileSystem for Midnight Commander -Author: Oleg BroytMann . -Copyright (C) 2004, 2005 PhiloSoft Design. -License: GPL. - Manipulate a cell phone's filesystem calling obexftp binary. This is a complete user-mode solution, no kernel modules required (unlike SieFS or such). The script implements all commands of Midnight Commander VFS, except for @@ -36,6 +32,8 @@ and "channel" is the OBEX File Transfer channel; you can discover the address and the channel for your device by using commands like "hcitool scan" and "sdptool browse". +For the USB put the interface number: "usb interface". + For the TTY put the device name: "tty /dev/ttyUSB0". For the IrDA: just put "IrDA" in the file. @@ -66,15 +64,16 @@ named in $TMP environment variable. """ -__version__ = "1.2.3" +__version__ = "1.3.0" __revision__ = "$Id$" __date__ = "$Date$"[7:-2] -__author__ = "Oleg Broytmann " -__copyright__ = "Copyright (C) 2004, 2005 PhiloSoft Design" +__author__ = "Oleg Broytman " +__copyright__ = "Copyright (C) 2004-2010 PhiloSoft Design" +__license__ = "GPL" # Change this to suite your needs -obexftp_prog = "/usr/local/obex/bin/obexftp" +obexftp_prog = "/usr/bin/obexftp" import sys, os, shutil @@ -96,7 +95,7 @@ ObexFTP Virtual FileSystem for Midnight Commander version %s Author: %s %s -This is not a program. Put the script in /usr/[local/][lib|shre]/mc/extfs. +This is not a program. Put the script in /usr/[local/][lib|share]/mc/extfs. For more information read the source!""", __version__, __author__, __copyright__ ) @@ -337,6 +336,12 @@ def setup_transport(): elif len(parts) > 3: transport_error("too many arguments for 'bluetooth' transport") return ' '.join(["-b", parts[1], "-B", parts[2]]) + elif transport == "usb": + if len(parts) < 2: + transport_error("not enough arguments for 'usb' transport") + elif len(parts) > 2: + transport_error("too many arguments for 'usb' transport") + return ' '.join(["-u", parts[1]]) elif transport == "tty": if len(parts) < 2: transport_error("not enough arguments for 'tty' transport")