mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
3
setup.py
3
setup.py
@ -11,7 +11,8 @@ import re
|
||||
def install_file(source_filename, dest_filename):
|
||||
# do not overwrite network configuration if it exists already
|
||||
# https://github.com/evilsocket/pwnagotchi/issues/483
|
||||
if dest_filename.startswith('/etc/network/interfaces.d/') and os.path.exists(dest_filename):
|
||||
if (dest_filename.startswith('/etc/network/interfaces.d/') or dest_filename.startswith('/root/')
|
||||
and os.path.exists(dest_filename)):
|
||||
print("%s exists, skipping ..." % dest_filename)
|
||||
return
|
||||
|
||||
|
Reference in New Issue
Block a user