Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Salmela <jacobsalmela@users.noreply.github.com>2016-01-03 02:17:58 +0300
committerJacob Salmela <jacobsalmela@users.noreply.github.com>2016-01-03 02:17:58 +0300
commitd2b694788653834bec3789c3f28a37aa2d5ebc7e (patch)
treefac3f1356cc9e9d152b8d9ea78949ed58d83cfec
parentba75c4c62cb17676206843072eb661e60f620c3f (diff)
parentbc3224e0b9fce6bb01510113f97e8c55d914c441 (diff)
Merge pull request #146 from iblamefish/multiple-interfaces
installer - only select first (probably default) interface in list instead of all
-rwxr-xr-xautomated install/basic-install.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh
index a529b40d..ea7c882e 100755
--- a/automated install/basic-install.sh
+++ b/automated install/basic-install.sh
@@ -74,9 +74,16 @@ chooseInterface()
{
# Turn the available interfaces into an array so it can be used with a whiptail dialog
interfacesArray=()
+firstloop=1
+
while read -r line
do
-interfacesArray+=("$line" "available" "ON")
+mode="OFF"
+if [[ $firstloop -eq 1 ]]; then
+ firstloop=0
+ mode="ON"
+fi
+interfacesArray+=("$line" "available" "$mode")
done <<< "$availableInterfaces"
# Find out how many interfaces are available to choose from