From 8cd82995c9c01fac59aa5ff6ef17a098d73db5d9 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Thu, 30 Mar 2006 20:10:13 +0000 Subject: more debug level, exclude-common for rsync (files and directories common for all distros), ... git-svn-id: http://svn.openslx.org/svn/openslx/ld4@132 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initrd/initrd-stuff/bin/servconfig | 5 +++++ initrd/initrd-stuff/init | 15 +++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) (limited to 'initrd/initrd-stuff') diff --git a/initrd/initrd-stuff/bin/servconfig b/initrd/initrd-stuff/bin/servconfig index 497be9b7..1f12f279 100755 --- a/initrd/initrd-stuff/bin/servconfig +++ b/initrd/initrd-stuff/bin/servconfig @@ -142,6 +142,11 @@ case ${DISTRO} in ;; esac +####################################################################### +# +# run distro specific configuration function +config-distro + ####################################################################### # diff --git a/initrd/initrd-stuff/init b/initrd/initrd-stuff/init index f0882aea..7081cd3e 100755 --- a/initrd/initrd-stuff/init +++ b/initrd/initrd-stuff/init @@ -2,13 +2,11 @@ # Description: main script for new type of initial ramdisk for # linux diskless clients version 4 # -# Author(s): Dirk von Suchodoletz , 23-03-2006 -# Bla -# Blub +# Author(s): Dirk von Suchodoletz , 30-03-2006 # # Copyright: (c) 2006 - RZ Universitaet Freiburg # -# Version: 0.2.3c +# Version: 0.2.3d # functions common for all distros errmsg="functions file contains a lot of script \ @@ -20,7 +18,7 @@ functionality. Without this\ninit script will not run." specific configuration file could not be found" && exit 1 ) export PATH=/bin:/sbin:/usr/bin/:/usr/sbin -export date="23-03-2006" +export date="@@@DATE@@@" export DEBUGLEVEL=0 export KERNEL="@@@KERNVER@@@" @@ -166,7 +164,7 @@ if [ "${DEBUGLEVEL}" -gt 0 ] ; then LOGFILE="/var/log/dxs-boot.log" echo "1 4 1 7" >/proc/sys/kernel/printk [ "${DEBUGLEVEL}" -eq 2 ] && MODPRV="-v" - [ "${DEBUGLEVEL}" -gt 2 ] && { + [ "${DEBUGLEVEL}" -gt 3 ] && { set -x # modprobe should be verbose MODPRV="-v"; @@ -425,11 +423,12 @@ and list the modules loaded until\n now." # should be killed if started within init killall -9 dhcpcd dhclient pump 2>/dev/null -[ $DEBUGLEVEL -gt 1 ] && sh - # post init for some distro specific postinit +# start a debug shell in higher debug levels +[ $DEBUGLEVEL -gt 2 ] && /bin/sh + # unmount the bind mounted modules directory for i in 0 40 100 200 300 500 800 1000 1200; do usleep $i && umount -n /lib/modules/${KERNEL} 2>/dev/null && break -- cgit v1.2.3-55-g7522