mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-28 17:13:17 +00:00
chooseInterface no longer has modified functionality so reverted to original version. (Ain't broke don't fix it).
This commit is contained in:
parent
2364e73ce9
commit
40ac22a427
1 changed files with 8 additions and 8 deletions
|
@ -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
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue