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:
parent
1e8fedce6c
commit
5cf748e98b
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user