chooseInterface no longer has modified functionality so reverted to original version. (Ain't broke don't fix it).

This commit is contained in:
ryt51V 2016-02-29 17:54:44 +00:00
parent 2364e73ce9
commit 40ac22a427

View file

@ -147,17 +147,17 @@ chooseInterface() {
interfaceCount=$(echo "$availableInterfaces" | wc -l) interfaceCount=$(echo "$availableInterfaces" | wc -l)
chooseInterfaceCmd=(whiptail --separate-output --radiolist "Choose An Interface" $r $c $interfaceCount) chooseInterfaceCmd=(whiptail --separate-output --radiolist "Choose An Interface" $r $c $interfaceCount)
chooseInterfaceOptions=$("${chooseInterfaceCmd[@]}" "${interfacesArray[@]}" 2>&1 >/dev/tty) chooseInterfaceOptions=$("${chooseInterfaceCmd[@]}" "${interfacesArray[@]}" 2>&1 >/dev/tty)
if [[ ! ($? = 0) ]]; then if [[ $? = 0 ]];then
echo "::: Cancel selected, exiting...." for desiredInterface in $chooseInterfaceOptions
exit 1 do
fi
for desiredInterface in $chooseInterfaceOptions
do
piholeInterface=$desiredInterface piholeInterface=$desiredInterface
echo "::: Using interface: $piholeInterface" echo "::: Using interface: $piholeInterface"
echo ${piholeInterface} > /tmp/piholeINT echo ${piholeInterface} > /tmp/piholeINT
done done
else
echo "::: Cancel selected, exiting...."
exit 1
fi
} }