projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
856285a
)
busybox/check: disable module by default and check for busybox binary
author
Harald Hoyer
<harald@redhat.com>
Wed, 10 Nov 2010 15:38:40 +0000
(16:38 +0100)
committer
Harald Hoyer
<harald@redhat.com>
Wed, 10 Nov 2010 15:38:40 +0000
(16:38 +0100)
modules.d/05busybox/check
patch
|
blob
|
history
diff --git
a/modules.d/05busybox/check
b/modules.d/05busybox/check
index
06bd986
..
dc57cca
100755
(executable)
--- a/
modules.d/05busybox/check
+++ b/
modules.d/05busybox/check
@@
-1,2
+1,7
@@
#!/bin/bash
-exit 0
+
+[[ $1 = -d ]] && exit 0
+
+type -P busybox >/dev/null || exit 1
+
+exit 255