aboutsummaryrefslogtreecommitdiffstats
path: root/dracut
diff options
context:
space:
mode:
authorGravatar Benjamin Pereto <benjamin.pereto@gmail.com>2015-01-04 17:42:44 +0100
committerGravatar Christian Hesse <mail@eworm.de>2015-01-04 17:44:54 +0100
commit3a330ba3316e63c515011dd9bcfdbfc64c2e2b96 (patch)
treeafe4617c543dc2061044aaaab8f15181de22f9a2 /dracut
parenta67ef52d5881e052abe2a4729e24facd4ba58260 (diff)
downloadmkinitcpio-ykfde-3a330ba3316e63c515011dd9bcfdbfc64c2e2b96.tar.gz
mkinitcpio-ykfde-3a330ba3316e63c515011dd9bcfdbfc64c2e2b96.tar.zst
add dracut module
Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'dracut')
-rwxr-xr-xdracut/module-setup.sh21
-rwxr-xr-xdracut/parse-mod.sh4
-rwxr-xr-xdracut/ykfde.sh6
3 files changed, 31 insertions, 0 deletions
diff --git a/dracut/module-setup.sh b/dracut/module-setup.sh
new file mode 100755
index 0000000..86fcd32
--- /dev/null
+++ b/dracut/module-setup.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+check() {
+ return 0
+}
+
+# called by dracut
+depends() {
+ return 0
+}
+
+install() {
+ inst_rules "$moddir/20-ykfde.rules"
+ inst_hook cmdline 30 "$moddir/parse-mod.sh"
+ inst_simple "$moddir/ykfde.sh" /sbin/ykfde.sh
+ inst_simple /usr/lib/udev/ykfde
+ inst_simple /etc/ykfde.conf
+
+ dracut_need_initqueue
+}
+
diff --git a/dracut/parse-mod.sh b/dracut/parse-mod.sh
new file mode 100755
index 0000000..2ac9de2
--- /dev/null
+++ b/dracut/parse-mod.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+/sbin/initqueue --settled --unique --onetime /sbin/ykfde.sh
+
diff --git a/dracut/ykfde.sh b/dracut/ykfde.sh
new file mode 100755
index 0000000..6e66334
--- /dev/null
+++ b/dracut/ykfde.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# Placeholder to do something
+
+exit 0
+