]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
add /check for dmraim module
authorSeewer Philippe <philippe.seewer@bfh.ch>
Sat, 7 Mar 2009 11:24:07 +0000 (12:24 +0100)
committerHarald Hoyer <harald@redhat.com>
Sat, 7 Mar 2009 11:30:17 +0000 (12:30 +0100)
With the /check infrastucture in place, dmraid is missing a check file.

Patch is built on top of Harald Hoyers merge tree
(git://git.surfsite.org/pub/git/dracut.git)

modules.d/90dmraid/check [new file with mode: 0755]

diff --git a/modules.d/90dmraid/check b/modules.d/90dmraid/check
new file mode 100755 (executable)
index 0000000..632c28b
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+grep -q '^dm_mod' /proc/modules || exit 1
+awk '/^dm_mod/ {if ($3 > 0) exit 0; else exit 1;}' /proc/modules
\ No newline at end of file