summaryrefslogtreecommitdiffstats
path: root/initrd/initrd-stuff/init
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-01-20 01:54:30 +0100
committerDirk von Suchodoletz2006-01-20 01:54:30 +0100
commit0b2c8e82d02c600f2fc395947e7317f3b4d20f25 (patch)
tree56c453a1ddf8b7d6675857d8dd13906a41071ad4 /initrd/initrd-stuff/init
parentdxsinitrd: mehr zeug in kommandozeilenparameter (diff)
downloadcore-0b2c8e82d02c600f2fc395947e7317f3b4d20f25.tar.gz
core-0b2c8e82d02c600f2fc395947e7317f3b4d20f25.tar.xz
core-0b2c8e82d02c600f2fc395947e7317f3b4d20f25.zip
Abstimmung der Debuglevel (siehe auch /trac Wiki)
git-svn-id: http://svn.openslx.org/svn/openslx/dxs/ld4@26 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/initrd-stuff/init')
-rwxr-xr-xinitrd/initrd-stuff/init11
1 files changed, 7 insertions, 4 deletions
diff --git a/initrd/initrd-stuff/init b/initrd/initrd-stuff/init
index 4f983390..3654c51c 100755
--- a/initrd/initrd-stuff/init
+++ b/initrd/initrd-stuff/init
@@ -2,8 +2,8 @@
. /etc/functions || ( echo -e "The functions file contains a lot of script \
functionality. Without this\ninit script will not run." && exit 1 )
# configuration settings (several file and directory variables)
-. /etc/sysconfig/config || error " The distribution \
-specific configuration file could not be found"
+. /etc/sysconfig/config || ( echo -e " The distribution \
+specific configuration file could not be found" && exit 1 )
date
export PATH=/bin:/sbin:/usr/bin/:/usr/sbin
@@ -126,13 +126,16 @@ echo "Setting debuglevel to ${DEBUGLEVEL}"
export MODPRV=" "
export LOGFILE
if [ "${DEBUGLEVEL}" -gt 0 ] ; then
- # if LOGFILE should be used within initial ramdisk add '/mnt' in fron
+ # if LOGFILE should be used within initial ramdisk add '/mnt' in front
# of the variable
LOGFILE="/var/log/dxs-boot.log"
+ [ "${DEBUGLEVEL}" -eq 2 ] && MODPRV="-v"
[ "${DEBUGLEVEL}" -gt 2 ] && {
set -x
# modprobe should be verbose
- MODPRV="-v"; }
+ MODPRV="-v";
+ # and the kernel too
+ echo "7 7 7 7" >/proc/sys/kernel/printk; }
else
# switch off most of kernel debug output
echo "0 0 0 0" >/proc/sys/kernel/printk