mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
auto-t: Add config file arg. to IWD start script
This commit is contained in:
parent
cae6734035
commit
bc2396b4f7
@ -13,6 +13,7 @@ from abc import ABCMeta, abstractmethod
|
|||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
IWD_STORAGE_DIR = '/var/lib/iwd'
|
IWD_STORAGE_DIR = '/var/lib/iwd'
|
||||||
|
IWD_CONFIG_DIR = '/etc/iwd'
|
||||||
|
|
||||||
DBUS_OBJECT_MANAGER = 'org.freedesktop.DBus.ObjectManager'
|
DBUS_OBJECT_MANAGER = 'org.freedesktop.DBus.ObjectManager'
|
||||||
DBUS_PROPERTIES = 'org.freedesktop.DBus.Properties'
|
DBUS_PROPERTIES = 'org.freedesktop.DBus.Properties'
|
||||||
@ -511,7 +512,8 @@ class IWD(AsyncOpAbstract):
|
|||||||
_agent_manager_if = None
|
_agent_manager_if = None
|
||||||
_known_network_manager_if = None
|
_known_network_manager_if = None
|
||||||
|
|
||||||
def __init__(self, start_iwd_daemon = False):
|
def __init__(self, start_iwd_daemon = False,
|
||||||
|
iwd_config_dir = IWD_CONFIG_DIR):
|
||||||
global mainloop
|
global mainloop
|
||||||
mainloop = GLib.MainLoop()
|
mainloop = GLib.MainLoop()
|
||||||
|
|
||||||
@ -519,7 +521,7 @@ class IWD(AsyncOpAbstract):
|
|||||||
return
|
return
|
||||||
|
|
||||||
import subprocess
|
import subprocess
|
||||||
iwd_proc = subprocess.Popen('iwd')
|
iwd_proc = subprocess.Popen(['iwd', '-c', iwd_config_dir])
|
||||||
|
|
||||||
tries = 0
|
tries = 0
|
||||||
while not self._bus.name_has_owner(IWD_SERVICE):
|
while not self._bus.name_has_owner(IWD_SERVICE):
|
||||||
|
Loading…
Reference in New Issue
Block a user