allowing IsServer to be modified, configurable checkin time, single checkin for linux, moved cfg files

This commit is contained in:
afeiszli
2021-10-02 12:28:17 -04:00
parent f74d09773a
commit 21ba362eca
17 changed files with 105 additions and 56 deletions

View File

@@ -91,10 +91,5 @@ func GetMacIface(ipstring string) (string, error) {
}
func HasNetwork(network string) bool {
if ncutils.IsWindows() {
return ncutils.FileExists(ncutils.GetNetclientPathSpecific() + "netconfig-" + network)
}
return ncutils.FileExists("/etc/systemd/system/netclient-"+network+".timer") ||
ncutils.FileExists(ncutils.GetNetclientPathSpecific()+"netconfig-"+network)
}