Set run level 5

pull/46/head
necro-nemsis 2 years ago
parent 2da27f3952
commit f4d9b15559

@ -440,6 +440,7 @@ function install_raspap() {
update_system_packages
install_dependencies
patch_lokinet_service
set_runlevel_five
create_raspap_directories
common_interfaces
check_for_networkmananger

@ -32,8 +32,17 @@ function patch_lokinet_service() {
install_log "Patching Lokinet Service"
sed -i '/^After=network-online.target/a Wants=dnsmasq.service \nAfter=dnsmasq.service' /lib/systemd/system/lokinet.service
sudo systemctl daemon-reload
}
}
#Avoid race condition between Hostapd and dnsmasq
function set_runlevel_five() {
install_log "Setting Hostapd after DNSMasq init sequence"
sudo mv /etc/rc5.d/S01dnsmasq /etc/rc5.d/S02dnsmasq
sudo mv /etc/rc5.d/S01hostapd /etc/rc5.d/S03hostapd
}
#Remove NetworkManager and install dhcpd if required Armbian.

Loading…
Cancel
Save