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 06bd986..dc57cca 100755 (executable)
@@ -1,2 +1,7 @@
 #!/bin/bash
-exit 0
+
+[[ $1 = -d ]] && exit 0
+
+type -P busybox >/dev/null || exit 1
+
+exit 255