From 0b2c8e82d02c600f2fc395947e7317f3b4d20f25 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Fri, 20 Jan 2006 00:54:30 +0000 Subject: Abstimmung der Debuglevel (siehe auch /trac Wiki) git-svn-id: http://svn.openslx.org/svn/openslx/dxs/ld4@26 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initrd/initrd-stuff/init | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'initrd/initrd-stuff/init') 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 -- cgit v1.2.3-55-g7522