X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=src%2Finstall%2Bsetup%2Finstall%2Fmain.c;h=5586689f2eb3c600cc59ac745b312af9b0eb2e3c;hp=7a24c5ef7fcf414ad0571d4da78c32db50958068;hb=aee3027d875826e18b3eb198f9ad0c3228bfbb01;hpb=81e974f3628aa2b617b6ff64722661367092885e diff --git a/src/install+setup/install/main.c b/src/install+setup/install/main.c index 7a24c5ef7f..5586689f2e 100644 --- a/src/install+setup/install/main.c +++ b/src/install+setup/install/main.c @@ -235,26 +235,7 @@ int main(int argc, char *argv[]) i++; fprintf(flog, "Harddisk scan pass %i\n", i); - rc = mysystem("/bin/mountdest.sh"); - fprintf(flog, "RC %d\n", rc); - - if (rc == 0) { // Found IDE disk - scsi_disk = 0; - found = 1; - } else if (rc == 1) { // Found SCSI/USB/SATA disk - scsi_disk = 1; - found = 1; - } else { // No harddisk found - if (firstrun == 1) { - errorbox(ctr[TR_NO_HARDDISK]); - goto EXIT; - } - // Do this if the kudzu-scan fails... - runcommandwithstatus("/bin/probehw.sh deep-scan", ctr[TR_PROBING_HARDWARE]); - firstrun = 1; - } - -/* switch (mysystem("/bin/mountdest.sh")) { + switch (mysystem("/bin/mountdest.sh") % 255) { case 0: // Found IDE disk scsi_disk = 0; found = 1; @@ -271,7 +252,7 @@ int main(int argc, char *argv[]) // Do this if the kudzu-scan fails... runcommandwithstatus("/bin/probehw.sh deep-scan", ctr[TR_PROBING_HARDWARE]); firstrun = 1; - } */ + } } /* @@ -584,7 +565,7 @@ int main(int argc, char *argv[]) /* Going to make our initrd... */ snprintf(commandstring, STRING_SIZE, "/sbin/chroot /harddisk /sbin/mkinitcpio -v -g /boot/ipfirerd.img -k %s-ipfire", KERNEL_VERSION); runcommandwithstatus(commandstring, ctr[TR_BUILDING_INITRD]); - snprintf(commandstring, STRING_SIZE, "/sbin/chroot /harddisk /sbin/mkinitcpio -v -g /boot/ipfirerd-smp.img -k %s-smp-ipfire", KERNEL_VERSION); + snprintf(commandstring, STRING_SIZE, "/sbin/chroot /harddisk /sbin/mkinitcpio -v -g /boot/ipfirerd-smp.img -k %s-ipfire-smp", KERNEL_VERSION); runcommandwithstatus(commandstring, ctr[TR_BUILDING_INITRD]); sprintf(string, "root=%s3", hdparams.devnode_part_run);