[PATCH] add /check for dmraim module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux