diff --git a/fluxion.sh b/fluxion.sh index 6070209..618c32d 100755 --- a/fluxion.sh +++ b/fluxion.sh @@ -356,7 +356,7 @@ function fluxion_set_language() { function fluxion_unset_interface() { # Unblock interfaces to make them available. echo -e "$FLUXIONVLine $FLUXIONUnblockingWINotice" - rfkill unblock all + rfkill unblock all &> $FLUXIONOutputDevice # Find all monitor-mode interfaces & all AP interfaces. echo -e "$FLUXIONVLine $FLUXIONFindingExtraWINotice" diff --git a/lib/InterfaceUtils.sh b/lib/InterfaceUtils.sh index 22b7b2e..5e56221 100755 --- a/lib/InterfaceUtils.sh +++ b/lib/InterfaceUtils.sh @@ -187,7 +187,7 @@ function interface_prompt() { fi # If only one interface exists and it's available, choose it. - if [ ${#__interface_prompt__ifAvailable[@]} -eq 1 -a ${__interface_prompt__ifAvailableState[0]} = "[+]" ]; then + if [ "${#__interface_prompt__ifAvailable[@]}" -eq 1 -a "${__interface_prompt__ifAvailableState[0]}" = "[+]" ]; then InterfacePromptWISelected="${__interface_prompt__ifAvailable[0]}" InterfacePromptWISelectedState="[+]" # It passed the condition, it must be + InterfacePromptWISelectedInfo="${__interface_prompt__ifAvailableInfo[0]}"