From bd749bf0b7fb3d44db7aa1e03e2b9bd7ef06a88a Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Fri, 24 Jul 2015 18:09:27 +0200 Subject: [PATCH] Remove pkg/systemd/booted.go Signed-off-by: Antonio Murdaca --- systemd/booted.go | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 systemd/booted.go 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() -}