|
|
|
@ -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() {
|
|
|
|
|