From e0d99a293b1be8d6add8a933e52c8734a65768c0 Mon Sep 17 00:00:00 2001 From: Cyril Beslay Date: Mon, 2 Nov 2015 21:15:34 +0100 Subject: [PATCH] Add configuration of interface during installation Facilite installation when multiple interfaces (wifi for example) --- automated install/basic-install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 7c48fdba..0ec399c3 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -71,6 +71,12 @@ sudo lighty-enable-mod fastcgi fastcgi-php sudo mkdir /var/www/html/pihole sudo curl -o /var/www/html/pihole/index.html "https://raw.githubusercontent.com/jacobsalmela/pi-hole/master/advanced/index.html" +echo "Configuration of interface..." +echo "Which interface do you want to use ? (default eth0)" +read interface +interface=${interface:-eth0} +sudo sed -i -e "s/interface=eth0/interface=$interface/g" /etc/dnsmasq.conf + echo "Installing the Web interface..." sudo wget https://github.com/jacobsalmela/AdminLTE/archive/master.zip -O /var/www/master.zip sudo unzip /var/www/master.zip -d /var/www/html/