Diff
Not logged in

Differences From Artifact [6f0576d6d4]:

To Artifact [aaa1316acd]:


183
184
185
186
187
188
189
190

191
192
193
194
195
196
197
198
199
183
184
185
186
187
188
189

190
191

192
193
194
195
196
197
198







-
+

-







    os.system("lsusb")
def cmd_usb_remove(options):
    address=find_usb(options,get_vm_devices(options.sock))
    answer=send_command(options.sock,"usb_del %s" % address)
    print answer
    
def cmd_usb_attached(options):
    for t in get_host_devices(options.sock):
    for t in get_vm_devices(options.sock):
        print "Address %s : %s"%(t[0],t[1])
    print answer

def cmd_list(options):
    count = 0
    search_path=[os.environ['HOME']+"/VWs",
        config.get("directories","SharedVMs"),
        config.get("directories","AutostartVMs")]
    for dirname in search_path:
604
605
606
607
608
609
610

611
612
603
604
605
606
607
608
609
610
611
612







+


try:
   func=globals()[funcname]
except KeyError:
    print >>sys.stderr,"Operation %s is not implemented"%funcname
    sys.exit(3)
func(parsed_args)
if hasattr(parsed_args,'sock') and parsed_args.sock is not None:
    parsed_args.sock.shutdown(socket.SHUT_RDWR)
    parsed_args.sock.close()