From: Didier Raboud Date: Wed, 2 May 2012 07:29:11 +0000 (+0200) Subject: Bugfix init_is_upstart(): use test and full paths. X-Git-Tag: archive/raspbian/10.2018112800+rpi1^2~142 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=754793bae73492d7370bd063a9ac5d8b0c53af22;p=lsb.git Bugfix init_is_upstart(): use test and full paths. Git-Dch: None --- diff --git a/init-functions b/init-functions index c9abd33..3f01189 100644 --- a/init-functions +++ b/init-functions @@ -264,8 +264,7 @@ get_lsb_header_val () { # upstart job, it should generally exit non-zero in this case. init_is_upstart() { - if which initctl && initctl version | grep -q upstart - then + if [ -x /sbin/initctl ] && /sbin/initctl version | /bin/grep -q upstart; then return 0 fi return 1