home *** CD-ROM | disk | FTP | other *** search
Text File | 1999-03-22 | 28.6 KB | 1,063 lines |
- start main
-
- ; NOTE: This file needs LSETUP >= v1.4 !!!
-
- ourSSversion: string {"1"}
- saneSSversion: string {"1"}
-
- ;TESTING: void ; uncomment this for the final release !
- ;FINAL_TEST: void ; uncomment this for the final release !
-
- ;DO_KBD_REQUEST: void ; uncomment this, if 'kbd=xxx' should be reported
- ; to the kernel
-
- ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- ;@@@@@@@@@@@@@@@@@@@@@@@ CONFIGURATION @@@@@@@@@@@@@@@@@@@@@@@@@@@@
- ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
-
-
- ; +---- normattrib
- ; | +-- inversattrib
- ; | | +-- highlightattrib
- ; | | | +-- frameattrib
- ;colors (0x0f, 0x6f, 0x10, 0x07, 0x07, 0x70, 0x0f, 0x07) ; standard set, black background
- ; the same for MDA---^-----^-----^-----^
- colors (0x70, 0x0e, 0x0e, 0x70, 0x07, 0x70, 0x0f, 0x07) ; light background, a little color
- ;colors (0x70, 0x0f, 0xf0, 0x7f, 0x07, 0x70, 0x0f, 0x07) ; light background, no color
- ;colors (0x07, 0x70, 0x0f, 0x07, 0x07, 0x70, 0x0f, 0x07) ; for MDA, Hercules
-
-
-
- ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- ;@@@@@@@@@@@@@@@@@@@@@@@@@ MENU PART @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
-
-
-
- ;===========================================================================
-
- main_log_colum: string {"44"}
-
- main: menu (0,0,80,3,0) {
- image { tx_headline }
- action {
- show ( main2 )
- }
- }
-
- ; Main window body
-
- main2: menu (0,2,80,25-2,1) {
-
- image { tx_main2 }
-
- action {
- call initstuff()
- call show_startup_help()
-
- ; now we are starting the main menu-engine
- ; Each menu-job is setting <nextjob> to point to
- ; the next routine that should be executed.
- ; If all work is done, the last job calls exit.
- ; set nextjob = "check_if_GT_4Mb"
- set nextjob = "loadlin_or_floppy_menu"
-
- mainloop:
- call nextjob()
- goto mainloop
-
- }
- }
-
-
-
- ;------------------- main menu subroutines ------------------------
-
- ;------------------
- initstuff: function {
-
- ; we check if we got the right SUSESAVE
- set work1 = SSversion
- iferror goto no_preset
- call numbercmp(">=",SSversion,saneSSversion)
- iffalse exit(tx_wrong_SUSESAVE)
- no_preset:
- ; we are getting the default drive and print it on screen
- call get_default_drive(drive)
- printxy (main_log_colum,4,drive)
- printxy (main_log_colum,5,distribution) ; kind of distribution
-
- ; Now we ask for the CDrom drive letter
- set answerstring = drive ; preset it, so <enter> would return drive
- set answerstring = SSdrive ; preset from susesave.mnu
- set querystring = tx_initstuff
- call strcat(querystring, drive);
- show ( enter_char, querystring )
- ; and update it on screen
- call sprintf(drive,"%s:",answerstring)
- printxy (main_log_colum,4,drive)
- call createvar(SSdrive,drive)
- ;now update the pathes that we need later
- call strprefix(distribCDpath,drive)
- ;we check for W'95
- call W95check()
- }
-
-
- ;------------------
- W95check: function {
- set tx_no9000page = tx_no9000page_normal
- call getenv(work1,"winbootdir")
- iffalse return(0)
- call sprintf(work2, "%s\\command\\xcopy32.exe", work1)
- call existfile(work2)
- iffalse return(0)
- set tx_no9000page = tx_no9000page_W95
- call return(1)
- }
-
- ;-----------------
- show_startup_help: function {
- ; now we can show up our litle startup help file
- call sprintf(filestr, helpfile_on_CD, distribCDpath)
- show ( showfile_menu )
- }
-
-
-
- ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- ;@@@@@@@@@@@@@@@@@@@@@ INSTALLATION JOBS @@@@@@@@@@@@@@@@@@@@@@@@@@
- ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
-
-
- ;-----------------
- check_if_GT_4Mb: function {
-
- set nextjob = "cancelinstall"
- call sysinfo(work1)
- call strcpyitem(work2, work1 , 2)
- call numbercmp("=", work2, 0)
- iffalse goto is_not_64mb
- set work2 = "65536"
- is_not_64mb:
- set answerstring = work2
- set answerstring = SSmem ; preset from susesave.mnu
- set work3 = ( work2 / 1024 )
- call sprintf(work1, tx_check_if_GT_4Mb ,work2, work3 )
- show (enter_string, work1)
- call createvar(SSmem,answerstring)
- call numbercmp("<", answerstring, 1024)
- iffalse goto is_in_kbyte
- set answerstring = ( answerstring * 1024 )
-
- is_in_kbyte:
- call numbercmp("=",answerstring, work2)
- iftrue goto no_memparam
- ; we need it in 'bytes' for loadlin mem=
- set work1 = ( answerstring * 1024 )
- call sprintf(loadlin_mem_param, "mem=0x%lx\n", work1);
-
- no_memparam:
- call numbercmp(">=", answerstring, (6*1024) )
- iffalse goto has_not_enough_mem
- #ifdef WE_HAVE_OLD_LOADLIN
- ; now we check if we have enough mem for loadlin
- ; (W'95 does steal the 0x90000 page for DRVSPACE)
- ; NO: starting with LOALDIN-1.6 we don't have this problem
- call checkloadlinmem(0)
- iftrue
- #else
- call
- #endif
- return(1,nextjob,"ask_for_CD_or_HD")
- show ( errfile_menu, tx_no9000page )
- goto force_floppy
- has_not_enough_mem:
- show ( errfile_menu, tx_check_if_GT_4Mb_err )
- force_floppy:
- set bootmode = "2"
- call strcpyitem(work1,bootmodes,bootmode)
- printxy (main_log_colum,6,work1)
- set nextjob = "write_floppies"
- }
-
-
- ;-----------------
- ask_for_CD_or_HD: function {
-
- set nextjob = "cancelinstall"
- ; now we ask if the user has a Linux supported CD
- set buttontextlist = distribmodetx
- call choicepreset(SSdistribmode);
- show ( big_empty_menu, tx_ask_for_CD_or_HD, button_ask )
- call createvar(SSdistribmode,buttonresult)
- set distribmode = buttonresult
- set distrib_path = drive
- call numbercmp("=",distribmode,2);
- ; iffalse return(1,nextjob,"loadlin_or_floppy_menu")
- iffalse return(1,nextjob,"loadlin_scroll")
-
- ; we must install from HD, ask for the path
- oncemore: label
- set answerstring = "C:\\tmp"
- set answerstring = SSdistribHD
- show (enter_string, tx_ask_for_CD_or_HD_2)
- call translate(distribHDpath,answerstring,"\\/");
- call sscanf(distribHDpath,"%*1s%1s%s",work1,loadlin_image_prefix);
- call stringequal(work1,":")
- iffalse goto oncemore
- call createvar(SSdistribHD,distribHDpath)
- set distrib_path = distribHDpath
- ; set nextjob = "loadlin_or_floppy_menu"
- set nextjob = "loadlin_scroll"
- }
-
-
- ;-----------------
- loadlin_or_floppy_menu: function {
- set buttontextlist = bootmodetx
- call choicepreset(SSbootmode)
- show ( big_empty_menu, tx_loadlin_or_floppy_menu , button_ask )
- call createvar(SSbootmode,buttonresult)
- set bootmode = buttonresult
- call strcpyitem(work1,bootmodes,bootmode)
- printxy (main_log_colum,6,work1)
-
- ; this sets the next job
- call strcpyitem(nextjob,bootjobs,bootmode)
- }
-
-
- ;-----------------
-
- ask_f_kernel: function {
- set scroll_list = f_kernels
- set scroll_step = "3"
- call choicepreset(SSf_kernels);
- show ( scroll_main_help_menu, f_kernels_help)
- call createvar(SSf_kernels,scroll_result_item)
- set chosenkernellist = scroll_result
- call strcpyitem(work1,chosenkernellist,1)
- printxy (main_log_colum,7,work1)
- call strcpyitem(chosenkernel,chosenkernellist,3)
- call strcpyitem(work1,bootdirs,bootmode)
- call sprintf(filestr,"%s%s/%s",distribCDpath,work1,chosenkernel)
- }
-
- ask_f_root: function {
- set scroll_list = f_roots
- set scroll_step = "3"
- call choicepreset(SSf_roots);
- show ( scroll_main_help_menu, f_roots_help)
- call createvar(SSf_roots,scroll_result_item)
- call strcpyitem(rootdiskpath,scroll_result,3)
- call strcpyitem(work1,bootdirs,bootmode)
- call sprintf(filestr,"%s%s/%s", distribCDpath,work1,rootdiskpath)
- }
-
- ask_f_install: function {
- call strcpyitem(work1,bootdirs,bootmode)
- call sprintf(filestr,"%s%s/%s", distribCDpath,work1,setupdiskpath)
- }
-
- write_floppies: function {
-
- call strcpyitem(work1,bootdirs,bootmode)
- call sprintf(disklist,"%s%s/%s\n%s%s/%s\n%s%s/%s\n",
- distribCDpath,work1,chosenkernel,
- distribCDpath,work1,rootdiskpath,
- distribCDpath,work1,setupdiskpath,
- )
- ; we now ask for what disk to write
- ; we do this in a loop, so the user has to cancel
- loop: label
- set buttontextlist = tx_write_floppies_list
- show ( big_empty_menu, tx_write_floppies, button_ask )
- call numbercmp("=",buttonresult,3)
- iffalse goto doit
- call save_defaults()
- call exit( tx_write_floppies_ex );
- doit: label
- ; call strcpyitem(work2,"ask_f_kernel\nask_f_root\nask_f_install",buttonresult)
- call strcpyitem(work2,"ask_f_kernel\nask_f_root",buttonresult)
-
- call work2() ; this calls the chosen submenu
-
- set buttontextlist = tx_write_floppies_drive
- call choicepreset(SSfloppy)
- show ( big_empty_menu, tx_write_floppies_insert, button_ask )
- call createvar(SSfloppy,buttonresult)
- call strcpyitem(floppydrive,"A\nB",buttonresult)
- show ( big_empty_menu,, do_rawrite )
- goto loop
- }
-
- do_rawrite: function {
- call printf( tx_do_rawrite, filestr)
- #ifdef TESTING
- set filestr = "setup.exe"
- #endif
- call disk_rawrite (filestr, floppydrive)
- iftrue goto ok
- call printf(tx_do_rawrite_err)
- ok: label
- set buttontextlist = tx_continue
- call button_ask()
- }
-
-
- ;-----------------
- loadlin_scroll: function {
- ; check, if there is the $$CAM000 driver loaded
- call driver_loaded("$$CAM000")
- iftrue print_NCRwarning(0)
-
- set scroll_list = z_kernels
- set scroll_step = "3"
- call choicepreset(SSz_kernels);
- show ( scroll_main_help_menu, z_kernels_help)
- call createvar(SSz_kernels,scroll_result_item)
- set chosenkernellist = scroll_result
- call strcpyitem(work1,chosenkernellist,1)
- printxy (main_log_colum,7,work1)
- call strcpyitem(chosenkernel,chosenkernellist,3)
-
- ; this sets where we contnue
- ; call strcpyitem(nextjob,"loadlin_scroll_CD\nloadlin_scroll_HD",distribmode)
- set nextjob = loadlin_scroll_successor
- }
-
- ;-----------------
- print_NCRwarning: function {
- show ( big_err_menu, tx_print_NCRwarning )
- }
-
- ;-----------------
- loadlin_scroll_CD: function {
- set scroll_list = CD_devices
- set scroll_step = "2"
- call choicepreset(SSCD_devices);
- show ( scroll_main_help_menu, CD_devices_help)
- call createvar(SSCD_devices,scroll_result_item)
- call strcpyitem(chosenCDlist,CD_devices_params,scroll_result_item,2)
- call strcpyitem(loadlin_rootimage_dev,chosenCDlist,1)
- call strcpyitem(work1,chosenCDlist,2)
- call translate(loadlin_default_CD_param,work1," \n");
-
- #ifdef NOTHING
- call printf("loadlin_rootimage_dev =>%s<\nloadlin_default_CD_param = >%s<\n",
- loadlin_rootimage_dev,
- loadlin_default_CD_param
- )
- waitkey ()
- #endif
-
- ; this sets where we contnue
- set nextjob = loadlin_scroll_successor
- }
-
-
- ;-----------------
- loadlin_scroll_HD: function {
- set scroll_list = HD_devices
- set scroll_step = "2"
- call choicepreset(SSHD_devices);
- show ( scroll_main_help_menu, HD_devices_help)
- call createvar(SSHD_devices,scroll_result_item)
- set chosenHDlist = scroll_result
- call strcpyitem(loadlin_rootimage_dev,chosenHDlist,1)
- set loadlin_default_CD_param = "onlycd=none"
-
- #ifdef NOTHING
- call printf("loadlin_rootimage_dev =>%s<\nloadlin_default_CD_param = >%s<\n",
- loadlin_rootimage_dev,
- loadlin_default_CD_param
- )
- waitkey ()
- call exit("")
- #endif
-
- ; this sets where we contnue
- set nextjob = loadlin_scroll_successor
- }
-
- ;-----------------
- kdb_scroll: function {
- set scroll_list = kdb_scroll_list
- set scroll_step = "1"
- call choicepreset(SSkdb);
- call createvar(SSkdb,scroll_result_item)
- show ( scroll2_main_help_menu, kdb_scroll_help)
- set chosen_keymap = scroll_result
- call strprefix(chosen_keymap,"kbd=")
-
- #ifdef NOTHING
- call printf("chosen_keymap =>%s<\n", chosen_keymap )
- waitkey ()
- call exit("")
- #endif
-
- ; this sets where we contnue
- set nextjob = "get_kernel_params"
- }
-
- ;-----------------
- get_kernel_params: function {
- ; set nextjob = "start_loadlin"
- set nextjob = "ask_create_loadlin_dir"
- set answerstring = ""
- set answerstring = SSkernelpar
- call strcompress(answerstring) ; reduce all blanks to one
-
- show (enter_big_string, tx_get_kernel_params)
- set kernel_params = answerstring
- call translate(work1,kernel_params,"\n ");
- call strcat(kernel_params," ");
- call strcompress(kernel_params) ; reduce all blanks to one
- call createvar(SSkernelpar,work1)
- }
-
- ;-----------------
- ask_create_loadlin_dir: function {
- set buttontextlist = tx_ask_create_loadlin_dir_NY
- show ( big_empty_menu, tx_ask_create_loadlin_dir, button_ask )
- call strcpyitem(nextjob,"start_loadlin\ncreate_loadlin_dir",buttonresult)
- }
-
- loadlin_dos_path: string {"C:\\loadlin"}
-
- ;-----------------
- create_loadlin_dir: function {
- set nextjob = "start_loadlin"
- call sprintf(work1,"md %s",loadlin_dos_path)
- call system(work1)
-
- call strcpyitem(work1,bootdirs,bootmode)
- call sprintf(work2,"copy %s%s/%s.ikr %s/zimage", drive, work1, chosenkernel, loadlin_dos_path)
- call numbercmp("=",distribmode,2)
- iftrue sprintf(work2,"copy %s%s/%s.ikr %s/zimage", distribHDpath,work1,chosenkernel, loadlin_dos_path)
- call translate(work3,work2,"/\\");
- call system(work3)
-
- call sprintf(work2,"copy %s%s/loadlin.exe %s",distrib_path,loadlin_exec_path, loadlin_dos_path);
- call translate(work3,work2,"/\\");
- call system(work3)
-
- call sprintf(work2,"%s\\linux.par", loadlin_dos_path)
- call translate(work3,work2,"/\\");
- call sprintf(work1,
- "# params file for LOADLIN, generated for SuSE Linux\n\n"
- "%s\\zimage # file name of kernel image\n"
- "root=/dev/xxx # root file system, this will be overwritten\n"
- " # by LINUX.BAT, when started with correct value\n"
- "ro # root-fs will be mounted readonly\n"
- " # (may be changed by LINUX.BAT)\n"
- ,loadlin_dos_path
- )
- call strcat(work1,"\n\n# here may be your chosen keymap params\n")
- call strcat(work1,chosen_keymap)
- call strcat(work1,"\n\n# CD-dependent kernel_params\n")
- call strcat(work1,loadlin_default_CD_param)
- call strcat(work1,"\n\n# may be a mem= param follows\n")
- call strcat(work1,loadlin_mem_param)
- call strcat(work1,"\n# this is the language you selected\n")
- call strcat(work1,loadlin_lang_param)
- call strcat(work1,"\n# here follow some kernel params you entered during setup\n")
- call strcat(work1,kernel_params)
- call strcat(work1, "\n\n# end of params file\n")
- call writetextfile(work3,work1)
-
-
-
- call sprintf(work2,"%s\\linux.bat", loadlin_dos_path)
- call translate(work3,work2,"/\\");
- set work1 =
- "@echo off\n"
- 'if "%1\"=="" goto usage\n'
- "goto goon\n"
- ":usage\n"
- call strcat(work1,tx_create_loadlin_dir)
- call strcat(work1,
- "goto ende\n"
- ":goon\n"
- "set RWRD=ro\n"
- 'if "%2\"=="" goto goon2\n'
- "set RWRD=rw\n"
- ":goon2\n"
- )
- call sprintf(work2, "%s\\loadlin @%s\\linux.par", loadlin_dos_path, loadlin_dos_path)
- call strcat(work1, work2)
- call strcat(work1, " root=/dev/%1 %RWRD%\n:ende\n")
- call writetextfile(work3,work1)
- }
-
-
- #ifdef NOTHING ; this for later usage
- DOShistory: string { "" }
-
- exec_DOScomand: menu (6,10, 80-2*6, 25-2*10,0,1) {
- image {
- "Geben Sie den DOS-Befehl ein, den Sie ausfuehren moechten"
- }
- action {
- set answerstring = ""
- call enterstring (answerstring, 1,DOShistory)
- ; ^----to this inputted (or modified) result is copied
- ; (at input the contents of resultstring are
- ; offered to user to be modified )
- iffalse exit(cancelmesg) ; exits if an empty string was entered
- call sprintf(DOShistory,"%s\n%s",DOShistory,answerstring);
- call system(answerstring)
- }
- }
- #endif
-
-
- start_loadlin: function {
- call strcpyitem(work1,bootdirs,bootmode)
- call sprintf(loadlin_zimage,"%s%s/%s", drive, work1, chosenkernel)
- call sprintf(loadlin_initrd,"initrd=%s%s/initdisk.gz", drive, work1);
- call numbercmp("=",distribmode,2)
- iffalse goto ok
- call sprintf(loadlin_zimage,"%s%s/%s",distribHDpath,work1,chosenkernel)
- call sprintf(loadlin_initrd,"initrd=%s%s/initdisk.gz",distribHDpath, work1);
- ok: label
- set work1 = loadlin_rootimage_dev
- call sprintf(loadlin_rootimage_dev,
- "rootimage=/dev/%s:%s/suse/images/root",
- work1,loadlin_image_prefix
- );
- call strprefix(kernel_params,loadlin_mem_param);
- call strprefix(kernel_params,"\n");
- call strprefix(kernel_params,loadlin_default_CD_param);
- call strcat(kernel_params,loadlin_lang_param);
-
- #ifdef LOADLIN_EXE_TEST
- set work1 = ""
- #else
- call sprintf(work1,"%s%s",distrib_path,loadlin_exec_path);
- #endif
- call save_defaults()
- call translate(work2,kernel_params,"\n ");
- call sprintf(work4,
- "%s root=200 ramdisk_size=10240 rw 2 %s"
- #ifdef DO_KBD_REQUEST
- " %s"
- #endif
- " %s",
- loadlin_zimage,
- loadlin_initrd,
- ; loadlin_rootimage_dev,
- #ifdef DO_KBD_REQUEST
- chosen_keymap,
- #endif
- work2
- );
- call sprintf(work2, "%s\nLOADLIN %s",tx_start_loadlin,work4)
- #ifdef LOADLIN_TEST
- set buttontextlist = "Load Linux\nRun Loadlin -t"
- #else
- set buttontextlist = tx_start_loadlin_list
- #endif
- show ( real_big_empty_menu, work2, button_ask )
- set work3 = " -v\n -t"
- call existfile("c:/loadlin/susesave.mnu")
- iftrue sprintf(work3," -v\n -d c:/loadlin/susesave.dbg")
- call strcpyitem(work2, work3 ,buttonresult)
- call strcat(work4,work2)
- #ifdef FINAL_TEST
- call printf("%s\n%s",work1,work4)
- waitkey ()
- #else
- call exec_loadlin(work1,work4);
- #endif
- call exit(tx_start_loadlin_err)
- }
-
- ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- ;@@@@@@@@@@@@@@@@@@@@@ JOB-SPECIAL MENUS @@@@@@@@@@@@@@@@@@@@@@@@@@
- ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
-
- ;===========================================================================
- ; This are the Skroll menu's triple
-
- scroll_main_help_menu: menu (40,7, 80-40-3, 25-8-6,0) {
- image { "" }
- action {
- show ( scroll_help_menu )
- }
- }
- scroll_help_menu: menu (0,25-7, 80, 7, 1) {
- image { "" }
- action {
- show ( scroll_window )
- }
- }
- scroll_window: menu (3,7, 35,11, 0) {
- image { "" }
- action {
- ; string-array[n][step]---v v--- menu for scroll-helps
- call scrollbar (scroll_result, scroll_list, scroll_step, scroll_help_menu)
- ; ^----here the resulting array-item is copied
- iffalse cancelinstall(0)
- set scroll_result_item = __lastresult__
- }
- }
-
-
- ; This are the Skroll menu's pairs
-
- scroll2_main_help_menu: menu (40,7, 80-40-3, 25-8,0) {
- image { "" }
- action {
- show ( scroll2_window )
- }
- }
- scroll2_window: menu (3,7, 35,25-8, 0) {
- image { "" }
- action {
- ; string-array[n][step]---v
- call scrollbar (scroll_result, scroll_list, scroll_step)
- ; ^----here the resulting array-item is copied
- iffalse cancelinstall(0)
- set scroll_result_item = __lastresult__
- }
- }
-
-
-
- ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- ;@@@@@@@@@@@@@@@@@@@@@ AUXILIARY FUNCTIONS @@@@@@@@@@@@@@@@@@@@@@@@
- ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
-
- ;-----------------
- save_defaults: function {
- call createvar(work1_,"")
- set work1_ = SSversion
- ifnoterror goto do_save_defaults
- set buttontextlist = tx_save_defaults_YN
- show (small_empty_menu, tx_save_defaults, button_ask_nocancel)
- call numbercmp("=",buttonresult,1)
- iffalse goto no_save_defaults
- call createvar(SSversion,ourSSversion)
- do_save_defaults:
- call mkdir("C:/loadlin")
- call savevars("C:/loadlin/susesave.mnu",
- SSversion,
- SSdrive,SSmem,
- SSz_kernels,SSf_kernels,SSf_roots,
- SSHD_devices,SSCD_devices,
- SSdistribHD,SSkdb,
- SSdistribmode,SSbootmode,SSfloppy,
- SSkernelpar
- )
- no_save_defaults: label
- }
-
- ;-----------------
- cancelinstall: function {
-
- #ifdef TESTING
- show (debug_stop,nextjob)
- #endif
- call save_defaults()
- call exit(cancelmesg)
- }
-
-
- ;-----------------
- quitinstall: function {
-
- #ifdef TESTING
- show (debug_stop,nextjob)
- #endif
- call save_defaults()
- call exit(quitmesg)
- }
-
- ;-----------------
- button_ask: function {
- ; uses the string buttontextlist as input
- ; and returns the selected item number in buttonresult
- call buttons(buttontextlist)
- iffalse cancelinstall(0)
- set buttonresult = __lastresult__
- }
-
- ;-----------------
- button_ask_nocancel: function {
- ; uses the string buttontextlist as input
- ; and returns the selected item number in buttonresult
-
- set buttonresult = "0"
- call buttons(buttontextlist)
- iffalse return(0)
- set buttonresult = __lastresult__
- }
-
- ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- ;@@@@@@@@@@@@@@@@@@@@@@@ AUXILIARY MENUS @@@@@@@@@@@@@@@@@@@@@@@@@@
- ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
-
- big_empty_menu: menu (6,3,80-2*6,25-2*3+2,0) {
- image { "" }
- }
-
- real_big_empty_menu: menu (0,2,80,25-2*2+2,0) {
- image { "" }
- }
-
- small_empty_menu: menu (15,7,80-2*15,25-7-5,0) {
- image { "" }
- }
-
-
- enter_char: menu (20,8,80-2*20,25-8-6,0) {
- image { "" }
- action {
- #ifdef NOTHING
- call getkey(answerstring,"abcdefghijklmnopqrstuvwxyz\r",1)
- #else
- call enterstring (answerstring, 1);
- iffalse cancelinstall(0) ; exits if an empty string was entered
- call sprintf(work1,"%c",answerstring);
- set answerstring = work1;
- #endif
- }
- }
-
- enter_string: menu (6,7, 80-2*6, 25-2*7,0) {
- image querystring
- action {
- ; number of lines on bottom--v
- call enterstring (answerstring, 1)
- ; ^----to this inputted (or modified) result is copied
- ; (at input the contents of resultstring are
- ; offered to user to be modified )
- iffalse cancelinstall(0) ; exits if an empty string was entered
- }
- }
-
- enter_big_string: menu (6,7, 80-2*6, 25-7,0) {
- image querystring
- action {
- ; number of lines on bottom--v
- call enterstring (answerstring, 5)
- ; ^----to this inputted (or modified) result is copied
- ; (at input the contents of resultstring are
- ; offered to user to be modified )
- }
- }
-
- showfile_menu: menu (6,3,80-2*6,25-2*2,0) {
- image { "" }
- action {
- call showfile(filestr)
- iftrue goto ok
- call sprintf(errorstring, tx_showfile_menu, filestr);
- show ( errfile_menu, errorstring )
- call return(0)
- ok: label
- call buttons(tx_continue)
- iffalse cancelinstall(0)
- }
- }
-
- errfile_menu: menu (15,7,80-2*15,25-7-5,0) {
- image { "" }
- action {
- call buttons(tx_continue)
- iffalse cancelinstall(0)
- }
- }
-
- big_err_menu: menu (8,6,80-2*8,25-6-3,0) {
- image { "" }
- action {
- call buttons(tx_continue)
- iffalse cancelinstall(0)
- }
- }
-
- debug_stop: menu (0,0, 80,3,5,0x6f,0x7f) {
- image { "" }
- action {
- printxy(4,0,"Debug-window, press any key to continue",0x6f);
- waitkey()
- }
- }
-
- ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- ;@@@@@@@@@@@@@@@@@@@@@@@@@ DATA PART @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
-
- ; here we read in saved user input, it gets only included, when
- ; the setup wrapper (setup.mnu) sets -DSUSE_SAVE. And this is only
- ; done if the file susesave.mnu exists.
- #ifdef SUSE_SAVE
- #include "c:/loadlin/susesave.mnu"
- #endif
-
- ; some global strings
-
- drive: string ; this will be asked from user
- distribution: string { "SuSE Linux 6.1" }
-
- #ifdef TESTING
- distribCDpath: string { "/suse/setup" } ;here: my private test directory
- #else
- distribCDpath: string { "" } ; root of CD1 e.g: E:/
- #endif
-
- rootdiskpath: string {"root"}
- setupdiskpath: string {"pcmcia2"}
-
- chosenkernel: string ; base name of the chosen kernel/disk
- chosenkernellist: string ; stringlist of the chosen kernel/disk
- disklist: string
-
- distribmode: string {"1"}
- distribHDpath: string { "" }
- distrib_path: string
-
- chosenCDlist: string
- chosenHDlist: string
- loadlin_exec_path: string {"/suse/setup"}
- loadlin_zimage: string
- loadlin_root_dev: string
- loadlin_image_prefix: string
- loadlin_initrd: string
- loadlin_rootimage_dev: string
- loadlin_default_CD_param: string
- loadlin_mem_param: string
- kernel_params: string
- tx_no9000page: string
-
-
- ; bootmode definitions
- bootmode: string {"2"}
- bootmodetx: string {"Loadlin\nFloppy"}
-
- bootjobs: string {
- ; "loadlin_scroll\n"
- "check_if_GT_4Mb\n"
- "write_floppies"
- }
-
- bootmenus: string {
- "z_kernels_main_help\n"
- "f_kernels_main_help"
- }
-
- bootdirs: string {
- "/suse/images\n"
- "/disks"
- }
-
- floppydrive: string
-
- chosen_keymap: string
- kdb_scroll_list: string {
- "azerty\nbe-latin1\ncf\nde-latin1-nodeadkeys\n"
- "de-latin1\nde\ndefkeymap\ndefkeymap_V1.0\ndk-latin1\n"
- "dk\ndvorak\nemacs\nemacs2\nes\nfi-latin1\nfi\n"
- "fr-latin1\nfr\ngr-pc\ngr\nhebrew\nit-ibm\nit\n"
- "no-latin1\nno\npl\nru\nru1\nru2\nsf-latin1\nsf\n"
- "sg-latin1-lk450\nsg-latin1\nsg\nslovene\nuk\nus\n"
- }
-
- #ifdef DO_KBD_REQUEST
- loadlin_scroll_successor: string { "kdb_scroll" }
- #else
- loadlin_scroll_successor: string { "get_kernel_params" }
- #endif
-
- ;----------here are the language independent parts of configuration
-
- CD_devices_params: string {
- ; string list, step-width = 3, means: each 3rd line is a new item
- ; NOTE: If you changes this, you also have to update
- ; 'CD_devices' in the language dependent parts (setupger, setupeng)
-
- ;---
- ; *** 1. SCSI CD-ROM
- "scd0\n"
- "onlycd=none\n"
-
- ; *** 2. SCSI CD-ROM
- "scd1\n"
- "onlycd=none\n"
-
- ; *** ATAPI IDE ->hda
- "hda\n"
- "hda=cdrom onlycd=none\n"
-
- ; *** ATAPI IDE ->hdb
- "hdb\n"
- "hdb=cdrom onlycd=none\n"
-
- ; *** ATAPI IDE ->hdc
- "hdc\n"
- "hdc=cdrom onlycd=none\n"
-
- ; *** ATAPI IDE ->hdd
- "hdd\n"
- "hdd=cdrom onlycd=none\n"
-
- ; *** ATAPI IDE ->hde
- "hde\n"
- "hde=cdrom onlycd=none\n"
-
- ; *** ATAPI IDE ->hdf
- "hdf\n"
- "hdf=cdrom onlycd=none\n"
-
- ; *** ATAPI IDE ->hdg
- "hdg\n"
- "hdg=cdrom onlycd=none\n"
-
- ; *** ATAPI IDE ->hdh
- "hdh\n"
- "hdh=cdrom onlycd=none\n"
-
- ; *** Aztech
- "aztcd\n"
- "onlycd=aztcd\n"
-
- ; *** Goldstar
- "gscd0\n"
- "onlycd=gscd\n"
-
- ; *** Mitsumi
- "mcd\n"
- "onlycd=mcd\n"
-
- ; *** Mitsumi
- "mcdx0\n"
- "onlycd=mcdx\n"
-
- ; *** Philips
- "cm206cd\n"
- "onlycd=cm206\n"
-
- ; *** Sony CDU 31A/33A
- "sonycd\n"
- "onlycd=cdu31a\n"
-
- ; *** Sony CDU 535/531
- "cdu535\n"
- "onlycd=sonycd535\n"
-
- ; *** Soundblaster
- "sbpcd\n"
- "onlycd=sbpcd\n"
-
- ; *** Optics Storage 8000 AT CDROM (an ISP16 oder Panasonic CDROM interface)
- "optcd0\n"
- "onlycd=optcd\n"
-
- ; *** SANYO CDR-H94A (an ISP16 oder Panasonic CDROM interface)
- "sjcd\n"
- "onlycd=sjcd\n"
-
- ; *** ISP16 (Mozart)
- "isp16\n"
- "onlycd=isp16\n"
-
- ; *** BPCD (Parallel Port CD-ROM)
- "bpcd\n"
- "onlycd=bpcd\n"
-
- ; *** PWCD (Parallel Port CD-ROM)
- "pwcd\n"
- "onlycd=pwcd\n"
-
- }
-
-
-
- ;----------here are the language dependent parts included
- ;
- #ifdef GERMAN
- #include "setupger.mnu"
- #else
- #ifdef ENGLISH
- #include "setupeng.mnu"
- #else
- #ifdef SPANISH
- #include "setupesp.mnu"
- #else
- #ifdef FRENCH
- #include "setupfr.mnu"
- #else
- #ifdef INDONESIA
- #include "setupidn.mnu"
- #else
- #ifdef ITALIAN
- #include "setupita.mnu"
- #else
- #ifdef HUNGARIA
- #include "setuphun.mnu"
- #else
- #ifdef DUTCH
- #include "setupnld.mnu"
- #else
- #ifdef POLISH
- #include "setuppol.mnu"
- #else
- #ifdef PORTUGUESE
- #include "setupprt.mnu"
- #else
- #ifdef BRAZIL
- #include "setupbra.mnu"
- #else
- #ifdef RUSSIA
- #include "setuprus.mnu"
- #else
- should_not_come: here
- #endif
- #endif
- #endif
- #endif
- #endif
- #endif
- #endif
- #endif
- #endif
- #endif
- #endif
- #endif
-
- ;----------some most frequently used variables;
- ; put them at the end, so they are on top of the list
-
- ; some work string definitions
- work1: string
- work2: string
- work3: string
- work4: string
- querystring: string
- errorstring: string
- answerstring: string
- filestr: string
- result_list: string
-
-
- ; params for scroll menues:
- ; input:
- scroll_list: string ; the stringlist
- scroll_step: string ; the step of the list
- ; results:
- scroll_result: string ; here the chosen string item is stored
- scroll_result_item: string ; here the chosen item (a number) is stored
-
- ; params for button menues:
- buttontextlist: string
- buttonresult: string
-
-
-
-
- nextjob: string { "cancelinstall" }
-
-