Changeset 1719 for branches/6.2/packages/initramfs/init.c
- Timestamp:
- 09/07/06 23:48:17 (2 years ago)
- Files:
-
- 1 modified
-
branches/6.2/packages/initramfs/init.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.2/packages/initramfs/init.c
r1676 r1719 17 17 "/dev/hda", "/dev/hdb", "/dev/hdc", "/dev/hdd", "/dev/hde", "/dev/hdf", "/dev/hdg", "/dev/hdh", 18 18 "/dev/sr0", "/dev/sr1", "/dev/sr2", "/dev/sr3", "/dev/sr4", "/dev/sr5", "/dev/sr6", "/dev/sr7", 19 NULL ,19 NULL 20 20 }; 21 21 … … 182 182 struct iso_primary_descriptor pd; 183 183 int i; 184 int correct_cd; 184 185 185 186 for(i=0;devices[i]!=NULL;i++) … … 237 238 generated by the livecd Makefiles */ 238 239 239 i= strncmp(VOLUME_ID, pd.volume_id, strlen(VOLUME_ID));240 if ( i!=0) {240 correct_cd = strncmp(VOLUME_ID, pd.volume_id, strlen(VOLUME_ID)); 241 if (correct_cd!=0) { 241 242 printf("This is not the correct CD. Moving on...\n"); 242 243 close(fd);
