Install apt-packages while installing pwnagotchi, if needed

This commit is contained in:
Jeroen Oudshoorn
2024-01-23 12:22:30 +01:00
parent d675b3d0dd
commit e2f8119d2c
2 changed files with 8 additions and 0 deletions

1
apt_packages.txt Normal file
View File

@ -0,0 +1 @@
hcxtools

View File

@ -30,6 +30,13 @@ def install_file(source_filename, dest_filename):
def install_system_files(): def install_system_files():
f = open("apt_packages.txt", "r")
for x in f:
if x == "":
continue
os.system(f"apt-get install {x}")
f.close()
setup_path = os.path.dirname(__file__) setup_path = os.path.dirname(__file__)
data_path = os.path.join(setup_path, "builder/data") data_path = os.path.join(setup_path, "builder/data")