|
|
|
@ -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
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|