X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=src%2Finstall%2Bsetup%2Finstall%2Fmain.c;h=2ca2f07da0d823112b3772fda1262dc65b0cfc7e;hp=fab8de3d56c929731b636861281db5caeb5de29a;hb=5433e2c950a4429da23d18cf49d5da07e1714b5c;hpb=d9b7aa3334dbe9bcb73f8e2394cac9e1f05dc0eb diff --git a/src/install+setup/install/main.c b/src/install+setup/install/main.c index fab8de3d56..2ca2f07da0 100644 --- a/src/install+setup/install/main.c +++ b/src/install+setup/install/main.c @@ -193,16 +193,13 @@ int main(int argc, char *argv[]) sprintf (title, "%s v%s - %s", NAME, VERSION, SLOGAN); newtWinMessage(title, ctr[TR_OK], message); - /* sprintf(message, ctr[TR_SELECT_INSTALLATION_MEDIA_LONG], NAME); - * rc = newtWinMenu(ctr[TR_SELECT_INSTALLATION_MEDIA], message, - * 50, 5, 5, 6, installtypes, &installtype, ctr[TR_OK], - * ctr[TR_CANCEL], NULL); - * - * if (rc == 2) - * goto EXIT; - * This is for avoiding the question for a network installation. Set to cdrom. - */ - sprintf(installtype, CDROM_INSTALL, NAME); + sprintf(message, ctr[TR_SELECT_INSTALLATION_MEDIA_LONG], NAME); + rc = newtWinMenu(ctr[TR_SELECT_INSTALLATION_MEDIA], message, + 50, 5, 5, 6, installtypes, &installtype, ctr[TR_OK], + ctr[TR_CANCEL], NULL); + + if (rc == 2) + goto EXIT; if (installtype == CDROM_INSTALL) { @@ -963,12 +960,7 @@ RESTORE: goto EXIT; } /* Set Bootsplash */ - if ((handle = fopen("/scsidriver", "r"))) - mysystem("/bin/chroot /harddisk /sbin/splash -s -f /boot/splash/config/bootsplash-1024x768.cgf >> /harddisk/boot/ipfirerd.img"); - else - mysystem("/bin/chroot /harddisk /sbin/splash -s -f /boot/splash/config/bootsplash-1024x768.cgf > /harddisk/boot/initrd.splash"); - if ((handle = fopen("/scsidriver", "r"))) - mysystem("/bin/chroot /harddisk /sbin/splash -s -f /boot/splash/config/bootsplash-1024x768.cgf >> /harddisk/boot/ipfirerd-smp.img"); + mysystem("/bin/installbootsplash.sh"); mysystem("/bin/chroot /harddisk /bin/umount -n /proc"); #endif #ifdef __alpha__