Initial commit

This commit is contained in:
2026-03-03 13:58:06 -05:00
commit e81de212db
11 changed files with 459 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
//go:build linux
package main
import "errors"
func getHostsFileLocation() (string, error) {
var hostsFileLocation string
hostsFileLocation = "/etc/hosts"
exists, err := fileExists(hostsFileLocation)
if err != nil {
term(err)
}
if exists == false {
term(errors.New("hosts file does not exist at " + hostsFileLocation))
}
return hostsFileLocation, nil
}