Remove pkg/systemd/booted.go

Signed-off-by: Antonio Murdaca <runcom@linux.com>
This commit is contained in:
Antonio Murdaca 2015-07-24 18:09:27 +02:00
parent 0cec613de9
commit bd749bf0b7

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