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

CTRL+C trap #2

Open
ghost opened this issue Feb 28, 2018 · 1 comment
Open

CTRL+C trap #2

ghost opened this issue Feb 28, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 28, 2018

maybe you could add a function which executes when the user presses CTRL+C.
so that thing return to normal once you exit the script

trap ctrl_c INT
ctrl_c () {
#some code here
}

@europa502
Copy link
Owner

Thanks @johnbaitsyou , I guess that code can be used to reset the network cards automatically everytime the user tries to exit the offensive mode when triggered. :1 : )

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

No branches or pull requests

1 participant