~vcs-imports/ipfire/ipfire-2.x

« back to all changes in this revision

Viewing changes to src/install+setup/install/main.c

  • Committer: ms
  • Date: 2006-12-02 22:38:39 UTC
  • Revision ID: git-v1:73d9a908d5108e63c916b8868d2f12f8a0a229a7
System ist mittels LFS Bootscripte startbar.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@354 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

Show diffs side-by-side

added added

removed removed

Lines of Context:
760
760
        mysystem("/bin/mount -t proc none /harddisk/proc");
761
761
        mysystem("/bin/mount --bind /dev /harddisk/dev");
762
762
 
 
763
 
 
764
 
763
765
        /* if we detected SCSI then fixup */
764
 
        mysystem("/bin/probecntrl.sh");
 
766
        /* doesn't really work cause it sometimes creates a ramdisk on ide systems */
 
767
/*      mysystem("/bin/probecntrl.sh");
765
768
        if ((handle = fopen("/cntrldriver", "r")))
766
769
        {
767
770
                char *driver;
780
783
                        runcommandwithstatus(commandstring, ctr[TR_BUILDING_INITRD]);
781
784
                        mysystem("/bin/chroot /harddisk /bin/mv /boot/grub/scsigrub.conf /boot/grub/grub.conf");
782
785
                }
783
 
        }
 
786
        } */
784
787
 
785
788
        /* Build cache lang file */
786
789
        snprintf(commandstring, STRING_SIZE, "/bin/chroot /harddisk /usr/bin/perl -e \"require '" CONFIG_ROOT "/lang.pl'; &Lang::BuildCacheLang\"");
808
811
                goto EXIT;
809
812
        }
810
813
 
 
814
        /* Update /etc/fstab */
 
815
        replace( "/harddisk/etc/fstab", "DEVICE", hdparams.devnode);
 
816
 
811
817
        /* Install bootsplash */
812
818
        mysystem("/bin/installbootsplash.sh");
813
819
 
815
821
        mysystem("umount /harddisk/proc");
816
822
        mysystem("umount /harddisk/dev");
817
823
 
818
 
        sprintf(message, ctr[TR_CONGRATULATIONS_LONG],
819
 
                        NAME, SNAME, SNAME, NAME, NAME, NAME);
820
 
        newtWinMessage(ctr[TR_CONGRATULATIONS], ctr[TR_OK], message);
 
824
        if (!unattended) {
 
825
                sprintf(message, ctr[TR_CONGRATULATIONS_LONG],
 
826
                                NAME, SNAME, SNAME, NAME, NAME, NAME);
 
827
                newtWinMessage(ctr[TR_CONGRATULATIONS], ctr[TR_OK], message);
 
828
        }
821
829
                 
822
830
        allok = 1;
823
831