relocate rfkill unblock inside the interface setup function

This commit is contained in:
strasharo 2016-03-23 01:29:43 +02:00
parent dfc0bcc0e1
commit 5db01fa4af
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,5 @@
#!/bin/bash #!/bin/bash
rfkill unblock all
########## DEBUG Mode ########## ########## DEBUG Mode ##########
## ## ## ##
FLUX_DEBUG=0 FLUX_DEBUG=0
@ -629,6 +627,8 @@ esac
# Choose Interface # Choose Interface
function setinterface { function setinterface {
#unblock interfaces
rfkill unblock all
# Collect all interfaces in montitor mode & stop all # Collect all interfaces in montitor mode & stop all
KILLMONITOR=`iwconfig 2>&1 | grep Monitor | awk '{print $1}'` KILLMONITOR=`iwconfig 2>&1 | grep Monitor | awk '{print $1}'`