summaryrefslogtreecommitdiffstats
path: root/initrd/initrd-stuff
diff options
context:
space:
mode:
Diffstat (limited to 'initrd/initrd-stuff')
-rwxr-xr-xinitrd/initrd-stuff/bin/hwautocfg21
-rwxr-xr-xinitrd/initrd-stuff/bin/servconfig6
-rwxr-xr-xinitrd/initrd-stuff/init7
3 files changed, 18 insertions, 16 deletions
diff --git a/initrd/initrd-stuff/bin/hwautocfg b/initrd/initrd-stuff/bin/hwautocfg
index 4ba7998a..4618eeea 100755
--- a/initrd/initrd-stuff/bin/hwautocfg
+++ b/initrd/initrd-stuff/bin/hwautocfg
@@ -4,17 +4,14 @@
# script for linux diskless clients, using hwconfig from
# knoppix as base tool
#
-# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 29-01-2006
+# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 30-01-2006
# Blabla
# Blub
#
# Copyright: (c) 2003 - 2006 - RZ Universitaet Freiburg
#
-#
-#
-
-# local functions
+# local functions used within hwautocfg
displaysetup () {
local xfc=$1
# define some defaults
@@ -277,15 +274,15 @@ fi
# USB core is needed for presence of /proc/bus/usb
( modprobe ${MODPRV} usbcore && mount -n -t usbfs usbfs /proc/bus/usb ) &
-#fixmee: Kernelmodul für ps-maeuse laden, da sie sonst nicht von hwsetup erkannt werden.
-if [ -f /mnt/lib/modules/${KERNEL}/kernel/drivers/input/mouse/psmouse.ko ]; then
- ( modprobe ${MODPRV} psmouse )
-fi
+#fixmee: Kernelmodul für ps-maeuse laden, da sie sonst nicht von hwsetup
+# erkannt werden. ( -> /lib reicht, bind mounted!! )
+[ -f /lib/modules/${KERNEL}/kernel/drivers/input/mouse/psmouse.ko ] && \
+ modprobe ${MODPRV} psmouse
# start the knoppix hardware autodetection tool
( hwsetup -v > /tmp/hwsetup.info && echo "hwsetup" > /tmp/hwrun1 ) &
-# ACPI configuration
+# ACPI configuration - at least not needed with SuSE 9.3/10.0
#if [ -d /proc/acpi ]; then
# if ! strinstr "noacpi" ${KCMDLINE} || \
# ! strinstr "acpi=off" ${KCMDLINE} ; then
@@ -374,6 +371,10 @@ if strinfile "IDE" /tmp/hwsetup.info ; then
strinfile "HD" /tmp/hwsetup.info && modprobe ${MODPRV} ide_disk &
usleep 5
fi ) &
+# cdrom/dvd und plattenkonfig. ergaenzen. Module sind hier geladen und
+# devices sind klar
+
+# fixme - psmouse entladen, falls nicht vorhanden
# configure some variables from configuration file - wait for dhcp or ldap
# confiurator to complete
diff --git a/initrd/initrd-stuff/bin/servconfig b/initrd/initrd-stuff/bin/servconfig
index 3e558545..d5220e64 100755
--- a/initrd/initrd-stuff/bin/servconfig
+++ b/initrd/initrd-stuff/bin/servconfig
@@ -4,13 +4,13 @@
# for linux diskless clients (executed within initial
# ramdisk)
#
-# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 20-01-2006
+# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 30-01-2006
# Blabla
# Blub
#
# Copyright: (c) 2006 - RZ Universitaet Freiburg
#
-# Version: 0.0.2a
+# Version: 0.0.2b
# check for configuration files to source
@@ -28,7 +28,7 @@
#######################################################################
# copy distro specific scripts, programs, libraries and configs
-cp -a /etc/sysconfig/files/* /mnt > /dev/null 2&>1 &
+cp -a /etc/sysconfig/files/* /mnt 2>/dev/null
# set greeting
echo "
diff --git a/initrd/initrd-stuff/init b/initrd/initrd-stuff/init
index 4b4bffb9..985253b7 100755
--- a/initrd/initrd-stuff/init
+++ b/initrd/initrd-stuff/init
@@ -374,7 +374,8 @@ else
/etc/ld.so.cache file. That might cause errors\n if libraries are installed \
after this file was created on server." nonfatal
fi
-# save machine configuration
+# copy machine configuration (from global settings, additions made within
+# here and from dhcp/ldap sources) to client /etc for later checks
cp /etc/machine-setup /mnt/etc
waitfor /tmp/hwcfg 20000 || error " For some reason the hardware autoconfig \
of this client did not finish in\n time. You might check the process list \
@@ -382,14 +383,14 @@ and list the modules loaded until\n now."
waitfor /tmp/svcfg 20000 || error " For some reason the software config \
of this client did not finish in\n time. You might check the process list \
and list the modules loaded until\n now."
-# IP configuration is made and should not be updated automatically
+# IP configuration is made and should not be updated automatically, udevd
+# should be killed if started within init
killall -9 dhcpcd dhclient pump udevd 2>/dev/null
# unmount the bind mounted modules directory
umount -n /lib/modules/${KERNEL} || error "Unmount of the kernel \
modules directory failed for some reason."
# close runlevel script for stuff to execute during early bootup
d_mkbootld close
-
# check for inittab file
test -f /mnt/etc/inittab || error " The file /etc/inittab does not exist or \
is no regular one. It is needed\n for the bootup procedure to follow."