11-21-2017, 03:57 AM
With the GPIO mod, you have a control that signals a clean shutdown. Could you add an option so that instead of shutting down the pi, it would just cleanly exit wlandump?
In my trials I have written a boot script that loads wlandump, and when I manually exit (ctrl^c) the script does some post processing work and then shuts down the pi. But if I use the button, the post script never runs. This behavior appears to be defined in wlandump-ng.c in the signal_handler() function around line 1135 by making a call to system("poweroff") after closing the pcap cleanly.
It would be great if a command line switch let use decide if it should power off or just quit when the signal is received on the GPIO pin.
In my trials I have written a boot script that loads wlandump, and when I manually exit (ctrl^c) the script does some post processing work and then shuts down the pi. But if I use the button, the post script never runs. This behavior appears to be defined in wlandump-ng.c in the signal_handler() function around line 1135 by making a call to system("poweroff") after closing the pcap cleanly.
It would be great if a command line switch let use decide if it should power off or just quit when the signal is received on the GPIO pin.