diff --git a/bibliotecha.sh b/bibliotecha.sh index 764cb0e..0950be0 100755 --- a/bibliotecha.sh +++ b/bibliotecha.sh @@ -243,6 +243,14 @@ function configure_hostapd { /etc/default/hostapd } +function configure_etc_hosts { + echo "Configuring /etc/hosts entry ..." + + if ! grep -q "bibliotecha.library" /etc/hosts; then + echo '10.0.0.1 bibliotecha.library' >> /etc/hosts + fi +} + function enable_networking_services { echo "Enabling network services ..." @@ -403,6 +411,7 @@ function run_installation { configure_network_interfaces configure_dnsmasq configure_hostapd + configure_etc_hosts enable_networking_services install_webserver