]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
busybox/check: disable module by default and check for busybox binary
authorHarald Hoyer <harald@redhat.com>
Wed, 10 Nov 2010 15:38:40 +0000 (16:38 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 10 Nov 2010 15:38:40 +0000 (16:38 +0100)
modules.d/05busybox/check

index 06bd986563d4c79bcdeb334e9502a09a452f80e4..dc57cca601727aebfc1fd11f991b06a4641b76e4 100755 (executable)
@@ -1,2 +1,7 @@
 #!/bin/bash
-exit 0
+
+[[ $1 = -d ]] && exit 0
+
+type -P busybox >/dev/null || exit 1
+
+exit 255