home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 May / Chip_2000-05_cd2.bin / suse / inst-sys / lib / YaST2 / clients / inst_suseconfig.ycp < prev    next >
Encoding:
Text File  |  2000-03-30  |  1.5 KB  |  54 lines

  1. /**
  2.  * Module:         inst_suseconfig.ycp
  3.  *
  4.  * Authors:         Andreas Schwab (schwab@suse.de)
  5.  *
  6.  * Purpose:         -Showing the "Finishing the installation" frame
  7.  *            -Running "SuSEconfig"
  8.  *            -Running "init" to reread inittag, which has been 
  9.  *             changed by SuSEconfig.
  10.  *            -Showing the loginname which can be used.
  11.  *
  12.  * user_settings:    used: loginname
  13.  *
  14.  * scr:                   -
  15.  *
  16.  * $Id: inst_suseconfig.ycp,v 1.16 2000/03/10 16:40:15 kkaempf Exp $
  17.  */ 
  18. {
  19.   term contents = `Label("");
  20.   any dlg = UI(`SetWizardContents(_("Finishing the installation"), contents,
  21.                   _("\
  22. <p>
  23. Normally, this will take a couple of minutes. Please wait...
  24. </p>
  25. <p>
  26. <tt>SuSEconfig</tt> has to initialize your SuSE Linux system.  Depending on
  27. the CPU and the amount of memory, this procedure can take some time.
  28. </p>
  29. <br>
  30. "),
  31.                   Args(0), Args(1)));
  32.  
  33.     // --------------------------------------------------------------
  34.     // Put config of installed kernel into kernel sources
  35.  
  36.     Mkdir("/usr/src/linux");
  37.     Shell("cp /boot/vmlinuz.config /usr/src/linux/.config");
  38.     Mkdir("/usr/src/linux/include");
  39.     Mkdir("/usr/src/linux/include/linux");
  40.     Shell("cp /boot/vmlinuz.*.h /usr/src/linux/include/linux");
  41.  
  42.   y2log(.milestone, "inst_suseconfig", 1, "Starting SuSEconfig");
  43.  
  44.   Shell("/sbin/SuSEconfig >/dev/tty4 2>&1");
  45.  
  46.   y2log(.milestone, "inst_suseconfig", 2, "SuSEconfig done");
  47.  
  48.   // Tell init to reread inittab, which has been changed by SuSEconfig.
  49.  
  50.   Shell("/sbin/init q");
  51.  
  52.   return `auto;
  53. }
  54.