Fixed missing quotes bug & suppressed rfkill error.
Fixed a bug caused by a blank variable not being quoted (syntax error). Redirected rfkill's error to log file when no wireless devices are available.
This commit is contained in:
parent
a375a4fb4a
commit
a892810f16
|
@ -356,7 +356,7 @@ function fluxion_set_language() {
|
||||||
function fluxion_unset_interface() {
|
function fluxion_unset_interface() {
|
||||||
# Unblock interfaces to make them available.
|
# Unblock interfaces to make them available.
|
||||||
echo -e "$FLUXIONVLine $FLUXIONUnblockingWINotice"
|
echo -e "$FLUXIONVLine $FLUXIONUnblockingWINotice"
|
||||||
rfkill unblock all
|
rfkill unblock all &> $FLUXIONOutputDevice
|
||||||
|
|
||||||
# Find all monitor-mode interfaces & all AP interfaces.
|
# Find all monitor-mode interfaces & all AP interfaces.
|
||||||
echo -e "$FLUXIONVLine $FLUXIONFindingExtraWINotice"
|
echo -e "$FLUXIONVLine $FLUXIONFindingExtraWINotice"
|
||||||
|
|
|
@ -187,7 +187,7 @@ function interface_prompt() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If only one interface exists and it's available, choose it.
|
# 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]}"
|
InterfacePromptWISelected="${__interface_prompt__ifAvailable[0]}"
|
||||||
InterfacePromptWISelectedState="[+]" # It passed the condition, it must be +
|
InterfacePromptWISelectedState="[+]" # It passed the condition, it must be +
|
||||||
InterfacePromptWISelectedInfo="${__interface_prompt__ifAvailableInfo[0]}"
|
InterfacePromptWISelectedInfo="${__interface_prompt__ifAvailableInfo[0]}"
|
||||||
|
|
Loading…
Reference in New Issue