diff options
author | Root | 2007-01-12 16:02:53 +0100 |
---|---|---|
committer | Root | 2007-01-12 16:02:53 +0100 |
commit | 800af873b919b56de53499f7c55be34c4f88f704 (patch) | |
tree | c8322da0b72a65e1bec8adba47e2f819eb8a4506 /initramfs/initrd-stuff/bin/hwautocfg | |
parent | No longer use SLX_SYSTEM_VARIANTNAME in this prototype code. (diff) | |
download | core-800af873b919b56de53499f7c55be34c4f88f704.tar.gz core-800af873b919b56de53499f7c55be34c4f88f704.tar.xz core-800af873b919b56de53499f7c55be34c4f88f704.zip |
Fix in hwautocfg (wait for device to appear) and small compatibility
hack for vmware-prep ...
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@617 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/initrd-stuff/bin/hwautocfg')
-rwxr-xr-x | initramfs/initrd-stuff/bin/hwautocfg | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/initramfs/initrd-stuff/bin/hwautocfg b/initramfs/initrd-stuff/bin/hwautocfg index de275307..eeea00d7 100755 --- a/initramfs/initrd-stuff/bin/hwautocfg +++ b/initramfs/initrd-stuff/bin/hwautocfg @@ -379,8 +379,8 @@ if strinfile "SCSI" /tmp/hwsetup.info ; then strinfile "CDROM" /tmp/hwsetup.info && { modprobe ${MODPRV} sr_mod; modprobe ${MODPRV} sg; # just for compatibility to hwsetup (which generates links to scd*) - test -b /dev/sr0 && { for i in /dev/sr* ; do - ln -s $i /dev/scd${i#/dev/sr} ; done; } + ( waitfor /dev/sr0 1000 && for i in /dev/sr* ; do + ln -s $i /dev/scd${i#/dev/sr} ; done; ) & } strinfile "HD" /tmp/hwsetup.info && modprobe ${MODPRV} sd_mod # check if a (scsi) scanner was detected |