summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2010-05-08 20:34:58 +0200
committerThomas Bächler <thomas@archlinux.org>2010-05-08 20:34:58 +0200
commit567371ea41a526597d98c964402abcc16717be6f (patch)
treecbda95f5a32e8293b9bd3d2572dc6e8907691e90
parente728a16478d10ae9351a2854d77ceba3664c9150 (diff)
downloadmkinitcpio-567371ea41a526597d98c964402abcc16717be6f.tar.gz
mkinitcpio-567371ea41a526597d98c964402abcc16717be6f.tar.xz
Add dmesg hook
-rw-r--r--hooks/dmesg5
-rw-r--r--install/dmesg18
2 files changed, 23 insertions, 0 deletions
diff --git a/hooks/dmesg b/hooks/dmesg
new file mode 100644
index 0000000..f7d4088
--- /dev/null
+++ b/hooks/dmesg
@@ -0,0 +1,5 @@
+# vim: set ft=sh:
+run_hook ()
+{
+ dmesg -n 3
+}
diff --git a/install/dmesg b/install/dmesg
new file mode 100644
index 0000000..d25deba
--- /dev/null
+++ b/install/dmesg
@@ -0,0 +1,18 @@
+# vim: set ft=sh:
+install ()
+{
+ MODULES=""
+ BINARIES=""
+ FILES=""
+ SCRIPT="dmesg"
+}
+
+help ()
+{
+cat<<HELPEOF
+ This hook lowers the console log level to 3.
+ It is useful when the user has to interact
+ with the boot process during early userspace
+ (like when entering a passphrase).
+HELPEOF
+} \ No newline at end of file