blob: 2c09a351de9ab602f6e42d2715f1b572fd67bc43 [file] [log] [blame]
#!/usr/bin/env python3
# Copyright 2019 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import print_function
import sys
import dbus
import flimflam
if len(sys.argv) < 2:
print('Usage: %s <service-path>' % (sys.argv[0]))
sys.exit(1)
(_, path) = sys.argv
flim = flimflam.FlimFlam(dbus.SystemBus())
service = flim.FindElementByNameSubstring('Service', path)
service.Remove()