Skip to content

Commit

Permalink
removed try
Browse files Browse the repository at this point in the history
  • Loading branch information
NastyaGrifon committed Jan 2, 2024
1 parent 9eeb19f commit ac9c989
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions wifite/tools/airmon.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,11 +340,11 @@ def terminate_conflicting_processes():
airmon_output = Process(['airmon-ng', 'check']).stdout()

# Checking for systemd, otherwise assume openrc
try:
if os.path.exists('/usr/lib/systemd/systemd'):
init_system = 'systemd'
else:
init_system = 'openrc'

if os.path.exists('/usr/lib/systemd/systemd'):
init_system = 'systemd'
else:
init_system = 'openrc'
# TODO: add support for other unorthodox init systems (maybe?)

# Conflicting process IDs and names
Expand Down

0 comments on commit ac9c989

Please sign in to comment.