summaryrefslogtreecommitdiffstats
path: root/initramfs/initrd-stuff/etc/functions
diff options
context:
space:
mode:
authorOliver Tappe2008-02-18 12:51:38 +0100
committerOliver Tappe2008-02-18 12:51:38 +0100
commit8eab33552359d9eaa57a6cdfa36ae356239ecaac (patch)
tree3c850d97dadc728e217fc5cbbdd38e5cd4ea3132 /initramfs/initrd-stuff/etc/functions
parent* Added support to slxos-setup for automatically installing the default set of (diff)
downloadcore-8eab33552359d9eaa57a6cdfa36ae356239ecaac.tar.gz
core-8eab33552359d9eaa57a6cdfa36ae356239ecaac.tar.xz
core-8eab33552359d9eaa57a6cdfa36ae356239ecaac.zip
* fixed kernel panic in case no plugin has been installed
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1560 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/initrd-stuff/etc/functions')
-rw-r--r--initramfs/initrd-stuff/etc/functions4
1 files changed, 3 insertions, 1 deletions
diff --git a/initramfs/initrd-stuff/etc/functions b/initramfs/initrd-stuff/etc/functions
index 4aa9cef4..285f2d46 100644
--- a/initramfs/initrd-stuff/etc/functions
+++ b/initramfs/initrd-stuff/etc/functions
@@ -558,7 +558,9 @@ runinithook () {
local hook=$1
if [ -d /etc/init-hooks/$hook ]; then
for hook_script in /etc/init-hooks/$hook/*.sh; do
- . $hook_script
+ if [ -e $hook_script ]; then
+ . $hook_script
+ fi
done
fi
}