Merge pull request #14959 from runcom/remove-pkg-systemd-booted-go
Remove pkg/systemd/booted.go
This commit is contained in:
commit
a922d62168
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