diff options
author | Felix Endres | 2007-03-29 01:08:20 +0200 |
---|---|---|
committer | Felix Endres | 2007-03-29 01:08:20 +0200 |
commit | a1423e3e8a32b4f78d35baa78c1423503786d5a8 (patch) | |
tree | 397cf37cdba1c2aa22b42fbe1a49af12bc53781c /initramfs/initrd-stuff/bin/hwautocfg | |
parent | Check if IDE or SCSI is done automatically. (diff) | |
download | core-a1423e3e8a32b4f78d35baa78c1423503786d5a8.tar.gz core-a1423e3e8a32b4f78d35baa78c1423503786d5a8.tar.xz core-a1423e3e8a32b4f78d35baa78c1423503786d5a8.zip |
Conditional creation of new links (removes "File Exists" errors)
Fixed Poweroff (NICs are shutdown prior to poweroff in the standard distribution)
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@832 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/initrd-stuff/bin/hwautocfg')
-rwxr-xr-x | initramfs/initrd-stuff/bin/hwautocfg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/initramfs/initrd-stuff/bin/hwautocfg b/initramfs/initrd-stuff/bin/hwautocfg index 127f3e22..4dae8810 100755 --- a/initramfs/initrd-stuff/bin/hwautocfg +++ b/initramfs/initrd-stuff/bin/hwautocfg @@ -359,7 +359,7 @@ if strinfile "SCSI" /tmp/hwsetup.info ; then modprobe ${MODPRV} sg; # just for compatibility to hwsetup (which generates links to scd*) ( waitfor /dev/sr0 1000 && for i in /dev/sr* ; do - ln -s $i /dev/scd${i#/dev/sr} ; done; ) & + [ -e /dev/scd${i#/dev/sr} ] || ln -s $i /dev/scd${i#/dev/sr} ; done; ) & } strinfile "HD" /tmp/hwsetup.info && { modprobe ${MODPRV} sd_mod |