Merge pull request #14959 from runcom/remove-pkg-systemd-booted-go

Remove pkg/systemd/booted.go
This commit is contained in:
Jessie Frazelle 2015-07-27 10:22:58 -07:00
commit a922d62168

View file

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