aboutsummaryrefslogtreecommitdiff
path: root/netnuke.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunk@stsci.edu>2009-09-20 20:28:05 -0400
committerJoseph Hunkeler <jhunk@stsci.edu>2009-09-20 20:28:05 -0400
commit51512bad2ab9e384344f96191834583f110b4a17 (patch)
tree038eb2ba375a1b0369a3e7807640b3691d775592 /netnuke.c
parent269705bc057034970527c0c382e14003ef5b02f0 (diff)
downloadNetNuke-51512bad2ab9e384344f96191834583f110b4a17.tar.gz
SATA checkpoint to iterate IDE devices works now.
More testing will be needed to determine if any device skipping happens if both IDE and SATA devices are connected at the same time.
Diffstat (limited to 'netnuke.c')
-rw-r--r--netnuke.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/netnuke.c b/netnuke.c
index 7265733..1a22711 100644
--- a/netnuke.c
+++ b/netnuke.c
@@ -298,8 +298,11 @@ void buildMediaList(media_t devices[])
#ifdef __FreeBSD__
/* Account for SATA devices. mediaList will always have IDE/SATA as position 0 */
- if(device.usable != USABLE_MEDIA && mt == 0 && i > 5)
- mt++;
+ if(device.usable != USABLE_MEDIA && mt == 0 && i < 4)
+ {
+ i++;
+ continue;
+ }
#endif
/* Primative statistics collection, also in this case device.usable