|
|
@ -1831,8 +1831,8 @@ class Client(commandServer, encrypt):
|
|
|
|
|
|
|
|
|
|
|
|
def restartDBus(self):
|
|
|
|
def restartDBus(self):
|
|
|
|
"""Restart D-Bus service"""
|
|
|
|
"""Restart D-Bus service"""
|
|
|
|
dbusDaemon = 'rc-service -i dbus'
|
|
|
|
dbusDaemon = '/sbin/rc-service -i dbus'
|
|
|
|
existsDaemon = 'rc-service -e dbus'
|
|
|
|
existsDaemon = '/sbin/rc-service -e dbus'
|
|
|
|
# if exists dbus and running
|
|
|
|
# if exists dbus and running
|
|
|
|
if os.system(existsDaemon) == 0 and \
|
|
|
|
if os.system(existsDaemon) == 0 and \
|
|
|
|
os.system(dbusDaemon + ' status &>/dev/null') == 0:
|
|
|
|
os.system(dbusDaemon + ' status &>/dev/null') == 0:
|
|
|
|