Handle resolvconf

pull/33/head
necro-nemesis 5 years ago
parent eaed8db61d
commit 0ffa547f8e

@ -226,6 +226,8 @@ function default_configuration() {
sudo mv $webroot_dir/config/dnsmasq.conf /etc/dnsmasq.conf || install_error "Unable to move dnsmasq configuration file"
sudo mv $webroot_dir/config/dhcpcd.conf /etc/dhcpcd.conf || install_error "Unable to move dhcpcd configuration file"
sudo mv $webroot_dir/config/head /etc/resolvconf/resolv.conf.d/head || install_error "Unable to move resolvconf head file"
sudo rm /etc/resolv.conf
sudo ln -s /etc/resolvconf/run/resolv.conf /etc/resolv.conf
sudo resolvconf -u || install_error "Unable to update resolv.conf"

@ -16,7 +16,7 @@ function install_dependencies() {
sudo apt-get install lighttpd $php_package git hostapd dnsmasq vnstat resolvconf lokinet || install_error "Unable to install dependencies"
}
#Remove NetworkManager, install dhcpd, create symlink to resolvconf.
#Remove NetworkManager and install dhcpd if required.
function check_for_networkmananger() {
install_log "Checking for NetworkManager"
@ -25,8 +25,6 @@ function check_for_networkmananger() {
echo "Network Manager found. Replacing with DHCPCD"
sudo apt-get -y purge network-manager
sudo apt-get -y install dhcpcd5
# sudo rm /etc/resolv.conf
# sudo ln -s ../run/resolvconf/resolv.conf /etc/resolv.conf
fi
}

Loading…
Cancel
Save