3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2025-01-20 01:14:07 +01:00

auto-t: modify copy_to_storage to take optional dir

This is to prepare for testing EAD, and in this case we need
to copy the 8021x config to /var/lib/ead instead of IWD's
config dir.
This commit is contained in:
James Prestwood 2020-09-17 14:32:42 -07:00 committed by Denis Kenzior
parent 1e8fedce6c
commit 5cf748e98b

View File

@ -921,12 +921,12 @@ class IWD(AsyncOpAbstract):
fo.close()
@staticmethod
def copy_to_storage(source):
def copy_to_storage(source, storage_dir=IWD_STORAGE_DIR):
import shutil
assert not os.path.isabs(source)
shutil.copy(source, IWD_STORAGE_DIR)
shutil.copy(source, storage_dir)
@staticmethod
def copy_to_hotspot(source):