eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit efe53e28c8f4dc35bc50a17c942f483acf0f0b81
parent a472874890d1ac1dc015f89da5029f4e1e593547
Author: James Prestwood <prestwoj@gmail.com>
Date:   Wed,  4 Nov 2020 08:48:08 -0800

auto-t: add copy_to_ap utility

Diffstat:
Mautotests/util/iwd.py | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/autotests/util/iwd.py b/autotests/util/iwd.py @@ -1036,6 +1036,7 @@ class IWD(AsyncOpAbstract): def clear_storage(storage_dir=IWD_STORAGE_DIR): os.system('rm -rf ' + storage_dir + '/*') os.system('rm -rf ' + storage_dir + '/hotspot/*') + os.system('rm -rf ' + storage_dir + '/ap/*') @staticmethod def create_in_storage(file_name, file_content): @@ -1064,6 +1065,13 @@ class IWD(AsyncOpAbstract): shutil.copy(source, IWD_STORAGE_DIR + "/hotspot") @staticmethod + def copy_to_ap(source): + if not os.path.exists(IWD_STORAGE_DIR + "/ap"): + os.mkdir(IWD_STORAGE_DIR + "/ap") + + IWD.copy_to_storage(source, IWD_STORAGE_DIR + '/ap/') + + @staticmethod def remove_from_storage(file_name): os.system('rm -rf ' + IWD_STORAGE_DIR + '/\'' + file_name + '\'')