summaryrefslogtreecommitdiffstats
path: root/initrd/initrd-stuff/init
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-03-30 22:10:13 +0200
committerDirk von Suchodoletz2006-03-30 22:10:13 +0200
commit8cd82995c9c01fac59aa5ff6ef17a098d73db5d9 (patch)
treed59261674adccf0ee39016be3fef556463708dba /initrd/initrd-stuff/init
parentNew functionality for retrieving the frequency ranges of the monitor from ddc... (diff)
downloadcore-8cd82995c9c01fac59aa5ff6ef17a098d73db5d9.tar.gz
core-8cd82995c9c01fac59aa5ff6ef17a098d73db5d9.tar.xz
core-8cd82995c9c01fac59aa5ff6ef17a098d73db5d9.zip
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
Diffstat (limited to 'initrd/initrd-stuff/init')
-rwxr-xr-xinitrd/initrd-stuff/init15
1 files changed, 7 insertions, 8 deletions
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 <dirk@goe.net>, 23-03-2006
-# Bla
-# Blub
+# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 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