projects
/
lsb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbd0ffa
)
Bugfix init_is_upstart(): use test and full paths.
author
Didier Raboud
<odyx@debian.org>
Wed, 2 May 2012 07:29:11 +0000
(09:29 +0200)
committer
Didier Raboud
<odyx@debian.org>
Thu, 3 May 2012 07:56:08 +0000
(09:56 +0200)
Git-Dch: None
init-functions
patch
|
blob
|
history
diff --git
a/init-functions
b/init-functions
index c9abd337742e1a9ce3b615e0c282ed3eb2bb457b..3f011899a72ee4a058d86536f403c117a49d23ac 100644
(file)
--- 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