explorer/init: do not grep on non-existent init
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
ceb6b597ef
commit
76d978d3d8
1 changed files with 1 additions and 0 deletions
|
@ -221,6 +221,7 @@ check_systemstarter() {
|
||||||
|
|
||||||
check_sysvinit() (
|
check_sysvinit() (
|
||||||
init_path=${1:-/sbin/init}
|
init_path=${1:-/sbin/init}
|
||||||
|
test -x "${init_path}" || return 1
|
||||||
grep -q 'INIT_VERSION=sysvinit-[0-9.]*' "${init_path}" || return 1
|
grep -q 'INIT_VERSION=sysvinit-[0-9.]*' "${init_path}" || return 1
|
||||||
|
|
||||||
# It is quite common to use SysVinit to stack other init systemd
|
# It is quite common to use SysVinit to stack other init systemd
|
||||||
|
|
Loading…
Reference in a new issue