diff --git a/fluxion.sh b/fluxion.sh index a55e3b3..5fdc034 100755 --- a/fluxion.sh +++ b/fluxion.sh @@ -4,6 +4,10 @@ # ================== < FLUXION Parameters > ================== # # ============================================================ # # Path to directory containing the FLUXION executable script. + +for program in "$(airmon-ng check | awk 'NR>6{print $2}')"; do + killall $program &> /dev/null + done readonly FLUXIONPath=$(dirname $(readlink -f "$0")) # Path to directory containing the FLUXION library (scripts). @@ -325,6 +329,7 @@ fluxion_shutdown() { # Only deallocate fluxion or airmon-ng created interfaces. if [[ "$interface" == "flux"* || "$interface" == *"mon"* || "$interface" == "prism"* ]]; then fluxion_deallocate_interface $interface + systemctl restart network-manager fi done fi