Use hostapd restart in service

pull/43/head
necro-nemsis 3 years ago
parent a6f1ec0aa6
commit 3a7a178766

@ -109,10 +109,10 @@ function common_interfaces() {
}
function stop_lokinet(){
install_log "stop lokinet and patch services"
install_log "stop lokinet and patch hostapd restart to service"
sudo systemctl stop lokinet.service
#Set sed lokinet.service for Hostapd to restart everytime after Lokinet restarts
sed -i "/^ExecStartPost=+/usr/sbin/lokinet-resolvconf add /var/lib/lokinet/lokinet.ini.*/a ExecStartPost=+systemctl restart hostapd" /usr/lib/systemd/system/lokinet.service
sed -i "/ExecStartPost=+\/usr\/sbin\/lokinet-resolvconf add \/var\/lib\/lokinet\/lokinet.ini/a ExecStartPost=+systemctl restart hostapd" /usr/lib/systemd/system/lokinet.service
sudo systemctl daemon-reload
}

Loading…
Cancel
Save