mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Install apt-packages while installing pwnagotchi, if needed
This commit is contained in:
1
apt_packages.txt
Normal file
1
apt_packages.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
hcxtools
|
7
setup.py
7
setup.py
@ -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")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user