Add Enit init system detection
This commit is contained in:
parent
4b9bc59810
commit
cd0faaefe5
2
utils.go
2
utils.go
@ -438,6 +438,8 @@ func GetInitSystem() string {
|
|||||||
return "Runit"
|
return "Runit"
|
||||||
case "dinit":
|
case "dinit":
|
||||||
return "Dinit " + runCommand("dinit --version | head -n1 | awk '{print substr($3, 1, length($3)-1)}'")
|
return "Dinit " + runCommand("dinit --version | head -n1 | awk '{print substr($3, 1, length($3)-1)}'")
|
||||||
|
case "enit":
|
||||||
|
return "Enit " + runCommand("enit --version | awk '{print $3}'")
|
||||||
default:
|
default:
|
||||||
return process.Executable()
|
return process.Executable()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user