Massive dependencies update

This commit is contained in:
Frank Denis 2018-05-10 09:56:25 +02:00
parent e6ccf7f3c0
commit 4f4daf41b7
28 changed files with 292 additions and 127 deletions

View file

@ -21,6 +21,13 @@ func isUpstart() bool {
if _, err := os.Stat("/sbin/upstart-udev-bridge"); err == nil {
return true
}
if _, err := os.Stat("/sbin/init"); err == nil {
if out, err := exec.Command("/sbin/init", "--version").Output(); err == nil {
if strings.Contains(string(out), "init (upstart") {
return true
}
}
}
return false
}