Remove pkg/systemd/booted.go
Signed-off-by: Antonio Murdaca <runcom@linux.com>
This commit is contained in:
parent
0cec613de9
commit
bd749bf0b7
1 changed files with 0 additions and 15 deletions
|
@ -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()
|
||||
}
|
Loading…
Reference in a new issue