1#!/usr/bin/python 2 3import pprint, sys 4import flimflam 5 6flim = flimflam.FlimFlam() 7 8if (len(sys.argv) < 2): 9 print "Usage: %s <service_name>" % (sys.argv[0]) 10 sys.exit(1) 11 12service = flim.FindElementByPropertySubstring('Service', 13 'Name', 14 sys.argv[1]) 15 16if not service: 17 print "Could not find service: %s" % (sys.argv[1]) 18 sys.exit(1) 19 20pprint.pprint(flim.DisconnectService(service)) 21