summaryrefslogtreecommitdiffstats
path: root/initramfs/initrd-stuff/etc/functions
diff options
context:
space:
mode:
authorOliver Tappe2008-01-11 17:03:15 +0100
committerOliver Tappe2008-01-11 17:03:15 +0100
commit5a884d7cf51c20d79f9be88b93519e65b21cd41b (patch)
tree8e7afe3507e89660cee1088c7e562b829cd76a0f /initramfs/initrd-stuff/etc/functions
parent* added TODO about lacking performance of set...Attrs() (diff)
downloadcore-5a884d7cf51c20d79f9be88b93519e65b21cd41b.tar.gz
core-5a884d7cf51c20d79f9be88b93519e65b21cd41b.tar.xz
core-5a884d7cf51c20d79f9be88b93519e65b21cd41b.zip
* added hook mechanism to initramfs-init which can be used by plugins
to trigger execution of their own script at a certain point in the initramfs-init execution path. This is not active yet * added basic implementation outline for Theme (a.k.a splash) plugin - unable to test anything, though, as VMware does not seem to provide a VESA framebuffer, so splashy won't run git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1466 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/initrd-stuff/etc/functions')
-rw-r--r--initramfs/initrd-stuff/etc/functions11
1 files changed, 11 insertions, 0 deletions
diff --git a/initramfs/initrd-stuff/etc/functions b/initramfs/initrd-stuff/etc/functions
index e6c57d82..830e7008 100644
--- a/initramfs/initrd-stuff/etc/functions
+++ b/initramfs/initrd-stuff/etc/functions
@@ -553,6 +553,17 @@ fi
}
#############################################################################
+# execute all shell scripts in the given init-hook folder
+runinithook () {
+local hook=$1
+if [ -d /initramfs/init-hooks/$hook ]; then
+ for hook_script in /initramfs/init-hooks/$hook/*; do
+ . hook_script
+ done
+fi
+}
+
+#############################################################################
# localization simply derived from $language variable set in machine-setup or
# other sources - mostly taken from knoppix
localization () {