mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-12-21 14:50:46 -08:00
Install apt-packages while installing pwnagotchi, if needed
This commit is contained in:
7
setup.py
7
setup.py
@@ -30,6 +30,13 @@ def install_file(source_filename, dest_filename):
|
||||
|
||||
|
||||
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__)
|
||||
data_path = os.path.join(setup_path, "builder/data")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user