kill and restart network-manager
This commit is contained in:
parent
3662c1c2b5
commit
a39b6c05a6
|
@ -4,6 +4,10 @@
|
||||||
# ================== < FLUXION Parameters > ================== #
|
# ================== < FLUXION Parameters > ================== #
|
||||||
# ============================================================ #
|
# ============================================================ #
|
||||||
# Path to directory containing the FLUXION executable script.
|
# 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"))
|
readonly FLUXIONPath=$(dirname $(readlink -f "$0"))
|
||||||
|
|
||||||
# Path to directory containing the FLUXION library (scripts).
|
# Path to directory containing the FLUXION library (scripts).
|
||||||
|
@ -325,6 +329,7 @@ fluxion_shutdown() {
|
||||||
# Only deallocate fluxion or airmon-ng created interfaces.
|
# Only deallocate fluxion or airmon-ng created interfaces.
|
||||||
if [[ "$interface" == "flux"* || "$interface" == *"mon"* || "$interface" == "prism"* ]]; then
|
if [[ "$interface" == "flux"* || "$interface" == *"mon"* || "$interface" == "prism"* ]]; then
|
||||||
fluxion_deallocate_interface $interface
|
fluxion_deallocate_interface $interface
|
||||||
|
systemctl restart network-manager
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue