summaryrefslogtreecommitdiffstats
path: root/initramfs/initrd-stuff/init
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/init
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/init')
-rwxr-xr-xinitramfs/initrd-stuff/init8
1 files changed, 5 insertions, 3 deletions
diff --git a/initramfs/initrd-stuff/init b/initramfs/initrd-stuff/init
index cef0206e..ca12c480 100755
--- a/initramfs/initrd-stuff/init
+++ b/initramfs/initrd-stuff/init
@@ -791,9 +791,11 @@ runinithook '70-before-plugins'
# check for any plugin-specific runlevel scripts and run them, if found:
if [ -d /etc/plugin-init.d ]; then
for plugin_starter in /etc/plugin-init.d/*.sh; do
- [ $DEBUGLEVEL -gt 0 ] \
- && echo "Running plugin starter $plugin_starter ..."
- . $plugin_starter
+ if [ -e $plugin_starter ]; then
+ [ $DEBUGLEVEL -gt 0 ] \
+ && echo "Running plugin starter $plugin_starter ..."
+ . $plugin_starter
+ fi
done
fi