kill and restart network-manager

This commit is contained in:
Usama Abdul Sattar 2019-08-01 12:16:39 +05:00 committed by GitHub
parent 3662c1c2b5
commit a39b6c05a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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