From 64e4e60c7373600289df08acf71fde1106627def Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Tue, 19 Apr 2022 19:16:22 -0400 Subject: [PATCH] Patch lokinet.service for dnsmasq --- installers/raspbian.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/installers/raspbian.sh b/installers/raspbian.sh index 24b93c6..ca9a01f 100755 --- a/installers/raspbian.sh +++ b/installers/raspbian.sh @@ -19,6 +19,15 @@ function install_dependencies() { sudo yes | apt-get install whois lighttpd $php_package git resolvconf hostapd dnsmasq vnstat libqmi-utils udhcpc lokinet || install_error "Unable to install dependencies" } +#Patch Lokinet Service Wants/After DNSMasq + +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 + +} + #Remove NetworkManager and install dhcpd if required Armbian. function check_for_networkmananger() {