Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pwnagotchi crash when updating hostname #1121

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

llamasoft
Copy link

Fixes #1096 (closed by the person who opened it but it was never actually fixed)

Description

The pwnagotchi process crashes when calling pwnagotchi.reboot because pwnagotchi was never imported. Importing it is actually unnecessary as the reboot function is defined in the same source file.

Motivation and Context

  • I have raised an issue to propose this change (required)

How Has This Been Tested?

Manually made this code change on my pwnagotchi and updated the hostname a few times.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I've read the CONTRIBUTION guide
  • I have signed-off my commits with git commit -s

Signed-off-by: llamasoft <llamasoft@rm-rf.email>
scifijunk added a commit to scifijunk/pwnagotchi that referenced this pull request Dec 31, 2022
-Incorporated changes from llamasoft/pwnagotchi on Github
Copy link

@AndrewBraunEE AndrewBraunEE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] NameError: name 'pwnagotchi' is not defined
2 participants