mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-01-11 14:34:44 +00:00
If only one interface available, don't show whiptail, just use that interface.
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
parent
1d608b204a
commit
6ff79835da
1 changed files with 5 additions and 0 deletions
|
@ -247,6 +247,11 @@ chooseInterface() {
|
||||||
# Loop sentinel variable
|
# Loop sentinel variable
|
||||||
local firstLoop=1
|
local firstLoop=1
|
||||||
|
|
||||||
|
if [[ $(echo ${availableInterfaces} | wc -l) -eq 1 ]]; then
|
||||||
|
PIHOLE_INTERFACE=${availableInterfaces}
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
mode="OFF"
|
mode="OFF"
|
||||||
if [[ ${firstLoop} -eq 1 ]]; then
|
if [[ ${firstLoop} -eq 1 ]]; then
|
||||||
|
|
Loading…
Reference in a new issue