diff options
author | Dirk von Suchodoletz | 2008-10-15 00:22:44 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2008-10-15 00:22:44 +0200 |
commit | d2b64d7dd66d009dc5ed001ada01e5a0ffacfd2a (patch) | |
tree | 1b67ade5a9af1e312b2f06305debb7aca77ee3d7 /initramfs | |
parent | Wrong escape before $location (creation of a proper runlevel script (diff) | |
download | core-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')
-rw-r--r-- | initramfs/stage3-stuff/etc/functions | 4 | ||||
-rwxr-xr-x | initramfs/stage3-stuff/init | 10 |
2 files changed, 7 insertions, 7 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 diff --git a/initramfs/stage3-stuff/init b/initramfs/stage3-stuff/init index 42a2a1da..434f6973 100755 --- a/initramfs/stage3-stuff/init +++ b/initramfs/stage3-stuff/init @@ -14,10 +14,8 @@ # clients version 4 ############################################################################# -# fixme: shut down if script fails - this does not really work in case of -# script crash -trap "exec (sleep 30; echo o>/proc/sysrq-trigger)" \ - SIGHUP SIGINT SIGPIPE SIGTERM SIGKILL +# fixme: the primary init script should never fail, so move all critical code +# into sub script calls (see ticket 259) # device files get their own filesystem (to be move mounted later) devdir="/dev" @@ -940,8 +938,8 @@ mount -n --move /dev /mnt/dev runinithook '95-cleanup' -# kill hwautocfg, servconfig -killall -9 hwautocfg servconfig debugshell 2>/mnt/dev/null +# kill hwautocfg, servconfig, hwinfo +killall -9 hwautocfg servconfig debugshell hwinfo 2>/mnt/dev/null # runtimer [ $DEBUGLEVEL -eq 8 -o $DEBUGLEVEL -eq 20 ] && \ echo "** SLX init ended near $(sysup)" |