|
|
@ -32,8 +32,17 @@ function patch_lokinet_service() {
|
|
|
|
install_log "Patching 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
|
|
|
|
sed -i '/^After=network-online.target/a Wants=dnsmasq.service \nAfter=dnsmasq.service' /lib/systemd/system/lokinet.service
|
|
|
|
sudo systemctl daemon-reload
|
|
|
|
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.
|
|
|
|
#Remove NetworkManager and install dhcpd if required Armbian.
|
|
|
|
|
|
|
|
|
|
|
|