* [PATCH] add /check for dmraim module
@ 2009-03-07 11:24 Seewer Philippe
0 siblings, 0 replies; only message in thread
From: Seewer Philippe @ 2009-03-07 11:24 UTC (permalink / raw)
To: <initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
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)
---
diff --git a/modules.d/90dmraid/check b/modules.d/90dmraid/check
new file mode 100755
index 0000000..632c28b
--- /dev/null
+++ b/modules.d/90dmraid/check
@@ -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
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-07 11:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-07 11:24 [PATCH] add /check for dmraim module Seewer Philippe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox