mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-24 15:13:42 +00:00
parent
59d8277b7b
commit
14fef45e47
1 changed files with 6 additions and 0 deletions
|
@ -103,12 +103,18 @@ done <<< "$availableInterfaces"
|
|||
interfaceCount=$(echo "$availableInterfaces" | wc -l)
|
||||
chooseInterfaceCmd=(whiptail --separate-output --radiolist "Choose An Interface" $r $c $interfaceCount)
|
||||
chooseInterfaceOptions=$("${chooseInterfaceCmd[@]}" "${interfacesArray[@]}" 2>&1 >/dev/tty)
|
||||
if [[ $chooseInterfaceOptions ]];then
|
||||
for desiredInterface in $chooseInterfaceOptions
|
||||
do
|
||||
piholeInterface=$desiredInterface
|
||||
echo "Using interface: $piholeInterface"
|
||||
echo ${piholeInterface} > /tmp/piholeINT
|
||||
done
|
||||
else
|
||||
# Exit if user cancels
|
||||
echo "Cancelling installation."
|
||||
exit
|
||||
fi
|
||||
}
|
||||
|
||||
use4andor6()
|
||||
|
|
Loading…
Reference in a new issue