diff options
author | Dirk von Suchodoletz | 2006-09-19 18:04:24 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2006-09-19 18:04:24 +0200 |
commit | 5bfcdd11646217c1722477caf366923150a84a2f (patch) | |
tree | 82d9f1f39656faf530c10fce39bd538d0ab6f035 /initramfs | |
parent | Still fixes needed for the directory change (see last checkins), (diff) | |
download | core-5bfcdd11646217c1722477caf366923150a84a2f.tar.gz core-5bfcdd11646217c1722477caf366923150a84a2f.tar.xz core-5bfcdd11646217c1722477caf366923150a84a2f.zip |
Small fixes: scanner udev rule moved to the end of hwautocfg (wait for
completion of /mnt/etc), fix in ld4-inst (generate pxelinux.cfg subdir),
duplicate in machine-setup.default removed ...
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@382 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs')
-rwxr-xr-x | initramfs/initrd-stuff/bin/hwautocfg | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/initramfs/initrd-stuff/bin/hwautocfg b/initramfs/initrd-stuff/bin/hwautocfg index edf77430..22848751 100755 --- a/initramfs/initrd-stuff/bin/hwautocfg +++ b/initramfs/initrd-stuff/bin/hwautocfg @@ -3,7 +3,7 @@ # universal (distro independent) hardware autoconfiguration script for # OpenSLX linux diskless clients, using hwconfig from knoppix as base tool # -# Dirk von Suchodoletz <dvs@OpenSLX.com>, 03-09-2006 +# Dirk von Suchodoletz <dvs@OpenSLX.com>, 19-09-2006 # # (c) 2003 - 2006 - RZ Universitaet Freiburg # (c) 2006 - OpenSLX.org @@ -368,9 +368,10 @@ if strinfile "SCSI" /tmp/hwsetup.info ; then strinfile "CDROM" /tmp/hwsetup.info && { modprobe ${MODPRV} sr_mod; modprobe ${MODPRV} sg; } strinfile "HD" /tmp/hwsetup.info && modprobe ${MODPRV} sd_mod + # check if a (scsi) scanner was detected strinfile "SCANNER" /tmp/hwsetup.info && \ echo -e 'KERNEL=="sg*",\t\tNAME="%k", GROUP="disk", MODE="666"' \ - >> /mnt/etc/udev/rules.d/04-scanner.rules + >> /tmp/scanner-udev fi # fixme - psmouse entladen, falls nicht vorhanden @@ -432,9 +433,12 @@ done # determine if tmp preparation should wait for format/mount or not [ -z "$part44" ] && echo "finished" > /tmp/tmpready -# wait for completion of clients root filesystem in /mnt +# wait for completion of clients root filesystem in /mnt and add +# previously generated files to /mnt/etc ... waitfor /tmp/fscmpl 40000 [ -f /tmp/fstab ] && cat /tmp/fstab >> /mnt/etc/fstab +[ -f /tmp/scanner-udev ] && cat /tmp/scanner-udev \ + >> /mnt/etc/udev/rules.d/04-scanner.rules # add entries to initialize keytable and consolefont to boot.ld # postpone some commands into normal bootup environment |