summaryrefslogtreecommitdiffstats
path: root/initramfs/stage3-stuff/etc/functions
diff options
context:
space:
mode:
authorDirk von Suchodoletz2008-10-15 00:22:44 +0200
committerDirk von Suchodoletz2008-10-15 00:22:44 +0200
commitd2b64d7dd66d009dc5ed001ada01e5a0ffacfd2a (patch)
tree1b67ade5a9af1e312b2f06305debb7aca77ee3d7 /initramfs/stage3-stuff/etc/functions
parentWrong escape before $location (creation of a proper runlevel script (diff)
downloadcore-d2b64d7dd66d009dc5ed001ada01e5a0ffacfd2a.tar.gz
core-d2b64d7dd66d009dc5ed001ada01e5a0ffacfd2a.tar.xz
core-d2b64d7dd66d009dc5ed001ada01e5a0ffacfd2a.zip
Applying init-wrapper to the init-hook system.
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2302 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/stage3-stuff/etc/functions')
-rw-r--r--initramfs/stage3-stuff/etc/functions4
1 files changed, 3 insertions, 1 deletions
diff --git a/initramfs/stage3-stuff/etc/functions b/initramfs/stage3-stuff/etc/functions
index d84c3056..9e308b7d 100644
--- a/initramfs/stage3-stuff/etc/functions
+++ b/initramfs/stage3-stuff/etc/functions
@@ -540,7 +540,9 @@ local hook=$1
if [ -d /etc/init-hooks/$hook ]; then
for hook_script in /etc/init-hooks/$hook/*.sh; do
if [ -e $hook_script ]; then
- . $hook_script
+ [ $DEBUGLEVEL -eq 15 ] \
+ && sed '/^#!/ a\\set -x' -i $hook_script
+ init-wrapper $hook_script
fi
done
fi