diff --git a/systemd/booted.go b/systemd/booted.go deleted file mode 100644 index 2aae931..0000000 --- a/systemd/booted.go +++ /dev/null @@ -1,15 +0,0 @@ -package systemd - -import ( - "os" -) - -// Conversion to Go of systemd's sd_booted() -func SdBooted() bool { - s, err := os.Stat("/run/systemd/system") - if err != nil { - return false - } - - return s.IsDir() -}