home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 May / Chip_2000-05_cd2.bin / dosutils / lhdsetup.bat next >
Encoding:
DOS Batch File  |  2000-03-13  |  20.3 KB  |  699 lines

  1. REM /// Begining of the lhdsetup.bat ///
  2. REM /// Modified to extract inst-img from root -- wfeldt@suse.de ///
  3. @echo off
  4. cls
  5.  
  6. :main
  7. echo.
  8. echo Initialising...
  9. echo.
  10. echo    ╔════════════════════════════════════════════════╗
  11. echo    ║                                                ║
  12. echo    ║  Linux from Hard Disk SETUP v1.1               ║
  13. echo    ║                                                ║
  14. echo    ║  For SuSE Linux 6.4                            ║
  15. echo    ║                                                ║
  16. echo    ║                       (c) Cyril Soldani, 1999  ║
  17. echo    ║                                                ║
  18. echo    ╚════════════════════════════════════════════════╝
  19. echo.
  20. echo This program set up the needed files for installing Linux or adding
  21. echo packages to an existing version when CD-ROM is unaccessible from Linux.
  22. echo It is designed for SuSE Linux 6.4.
  23. echo This program comes with absolutely no warranty.
  24. echo.
  25. if "%1"=="" echo No directory specified, using default C:\linux.
  26. if "%1"=="" set dirpath=C:\linux
  27. if not "%1"=="" set dirpath=%1
  28. if "%2"=="" echo No CD-ROM drive letter specified, using default D:
  29. if "%2"=="" set cdrom=D:
  30. if not "%2"=="" set cdrom=%2:
  31. if "%3"=="" echo No kernel specified, using default eide01.
  32. if "%3"=="" set kernel=eide01
  33. if not "%3"=="" set kernel=%3
  34. echo.
  35. choice /C:yn /N Do you want to proceed ? (y,n) 
  36. if errorlevel 2 goto abort
  37. if errorlevel 1 goto main_menu
  38. goto exit
  39.  
  40. :main_menu
  41. cls
  42. echo.
  43. echo    ┌──────────────────────────┐
  44. echo    │ A. Install from scratch  │
  45. echo    │ B. Add packages          │
  46. echo    │ C. Clean previous files  │
  47. echo    │ D. Display help          │
  48. echo    │ E. Boot SuSE Linux       │
  49. echo    │ F. Quit Linux HD SETUP   │
  50. echo    └──────────────────────────┘
  51. choice /C:abcdef /N What do you want to do ? 
  52. if errorlevel 6 goto quit
  53. if errorlevel 5 goto boot
  54. if errorlevel 4 goto help
  55. if errorlevel 3 goto clean
  56. if errorlevel 2 goto CD1
  57. if errorlevel 1 goto install1
  58. goto exit
  59.  
  60. :install1
  61. cls
  62. echo.
  63. echo DU files are not really necessary. They will help you later to know how
  64. echo much space you have left and how much space is occupied.  This could be
  65. echo handy. However, DU files take quite much space.
  66. echo.
  67. choice /C:yn /N Do you want to install DU files ? (y,n) 
  68. if errorlevel 2 goto no_du
  69. if errorlevel 1 goto du
  70. goto exit
  71.  
  72. :du
  73. set du=yes
  74. goto install2
  75.  
  76. :no_du
  77. set du=no
  78.  
  79. :install2
  80. echo lhdsetup will now create directories
  81. echo Creating %dirpath%...
  82. md %dirpath%
  83. echo Creating %dirpath%\suse...
  84. md %dirpath%\suse
  85. echo Creating %dirpath%\suse\setup...
  86. md %dirpath%\suse\setup
  87. echo Creating %dirpath%\suse\setup\descr...
  88. md %dirpath%\suse\setup\descr
  89. if %du%==yes echo Creating %dirpath%\suse\setup\du...
  90. if %du%==yes md %dirpath%\suse\setup\du
  91. echo Creating %dirpath%\suse\images...
  92. md %dirpath%\suse\images
  93. echo Creating %dirpath%\suse\a1...
  94. md %dirpath%\suse\a1
  95. echo.
  96. echo Directories created.
  97. echo.
  98. echo Insert now SuSE Linux CD 1 in %cdrom%
  99. echo.
  100. pause
  101. echo lhdsetup will now copy requested files.
  102. echo Copying setup files...
  103. copy %cdrom%\suse\setup\loadlin.exe %dirpath%\suse\setup
  104. %cdrom%\dosutils\gzip\gzip -dc %cdrom%\suse\images\root >%dirpath%\suse\setup\inst-img
  105. echo Copying setup\descr files...
  106. copy %cdrom%\suse\setup\descr %dirpath%\suse\setup\descr
  107. if %du%==yes echo Copying setup\du files...
  108. if %du%==yes copy %cdrom%\suse\setup\du %dirpath%\suse\setup\du
  109. echo Copying images files...
  110. copy %cdrom%\suse\images\initdisk.gz %dirpath%\suse\images
  111. copy %cdrom%\suse\images\%kernel%.* %dirpath%\suse\images
  112. echo Copying a1 files...
  113. copy %cdrom%\suse\a1 %dirpath%\suse\a1
  114. echo.
  115. echo Install files copied.
  116. echo.
  117. pause
  118. goto main_menu
  119.  
  120. :CD1
  121. cls
  122. echo.
  123. echo    ┌────────────────────────── CD 1 ────────────────────────────┐
  124. echo    │ A. a1    : Linux Base System (You need it!)                │
  125. echo    │ B. a2    : Linux Base System (You need it!)                │
  126. echo    │ C. ap1   : Programs that don't need X                      │
  127. echo    │ D. ap2   : Programs that don't need X                      │
  128. echo    │ E. d1    : Development (C, C++, Lisp, etc.)                │
  129. echo    │ F. d2    : Development (C, C++, Lisp, etc.)                │
  130. echo    │ G. e1    : Emacs                                           │
  131. echo    │ H. n1    : Network-Support (TCP/IP, UUCP, Mail, News)      │
  132. echo    │ I. n2    : Network-Support (TCP/IP, UUCP, Mail, News)      │
  133. echo    │ J. sec1  : Security related software                       │
  134. echo    │ K. tcl1  : Tcl/Tk/TclX, Tcl-Language and Tk-Toolkit for X  │ 
  135. echo    │ L. x1    : Base X Window System - XFree86\tm 3.3           │
  136. echo    │ M. x2    : Base X Window System - XFree86\tm 3.3           │
  137. echo    │ N. x3    : Base X Window System - XFree86\tm 3.3           │
  138. echo    │ O. xsrv1 : Several X Servers (XFree86\tm 3.3 and other)    │
  139. echo    │ P. xsrv2 : Several X Servers (XFree86\tm 3.3 and other)    │
  140. echo    │ Q. xsrv3 : Several X Servers (XFree86\tm 3.3 and other)    │
  141. echo    │ R. xv1   : XView (OpenLook, Applications)                  │
  142. echo    ├────────────────────────────────────────────────────────────┤
  143. echo    │ S. *** Other CDs ***                                       │
  144. echo    │ T. *** Main menu ***                                       │
  145. echo    └────────────────────────────────────────────────────────────┘
  146. choice /C:abcdefghijklmnopqrst /N Your choose ? 
  147. if errorlevel 20 goto main_menu
  148. if errorlevel 19 goto CD2
  149. if errorlevel 18 goto xv1
  150. if errorlevel 17 goto xsrv3
  151. if errorlevel 16 goto xsrv2
  152. if errorlevel 15 goto xsrv1
  153. if errorlevel 14 goto x3 
  154. if errorlevel 13 goto x2
  155. if errorlevel 12 goto x1
  156. if errorlevel 11 goto tcl1
  157. if errorlevel 10 goto sec1
  158. if errorlevel 9 goto n2
  159. if errorlevel 8 goto n1
  160. if errorlevel 7 goto e1
  161. if errorlevel 6 goto d2
  162. if errorlevel 5 goto d1
  163. if errorlevel 4 goto ap2
  164. if errorlevel 3 goto ap1
  165. if errorlevel 2 goto a2
  166. if errorlevel 1 goto a1
  167. goto exit
  168.  
  169. :a1
  170. set pack=a1
  171. set cd=CD1
  172. goto add
  173.  
  174. :a2
  175. set pack=a2
  176. set cd=CD1
  177. goto add
  178.  
  179. :ap1
  180. set pack=ap1
  181. set cd=CD1
  182. goto add
  183.  
  184. :ap2
  185. set pack=ap2
  186. set cd=CD1
  187. goto add
  188.  
  189. :d1
  190. set pack=d1
  191. set cd=CD1
  192. goto add
  193.  
  194. :d2
  195. set pack=d2
  196. set cd=CD1
  197. goto add
  198.  
  199. :e1
  200. set pack=e1
  201. set cd=CD1
  202. goto add
  203.  
  204. :n1
  205. set pack=n1
  206. set cd=CD1
  207. goto add
  208.  
  209. :n2
  210. set pack=n2
  211. set cd=CD1
  212. goto add
  213.  
  214. :sec1
  215. set pack=sec1
  216. set cd=CD1
  217. goto add
  218.  
  219. :tcl1
  220. set pack=tcl1
  221. set cd=CD1
  222. goto add
  223.  
  224. :x1
  225. set pack=x1
  226. set cd=CD1
  227. goto add
  228.  
  229. :x2
  230. set pack=x2
  231. set cd=CD1
  232. goto add
  233.  
  234. :x3
  235. set pack=x3
  236. set cd=CD1
  237. goto add
  238.  
  239. :xsrv1
  240. set pack=xsrv1
  241. set cd=CD1
  242. goto add
  243.  
  244. :xsrv2
  245. set pack=xsrv2
  246. set cd=CD1
  247. goto add
  248.  
  249. :xsrv3
  250. set pack=xsrv3
  251. set cd=CD1
  252. goto add
  253.  
  254. :xv1
  255. set pack=xv1
  256. set cd=CD1
  257. goto add
  258.  
  259. :CD2
  260. cls
  261. echo.
  262. echo    ┌──────────────────────── CD 2 ────────────────────────────┐
  263. echo    │ A. doc1  : Documentation                                 │
  264. echo    │ B. gnm1  : GNOME - GNU Network Object Model Environment  │
  265. echo    │ C. gnm2  : GNOME - GNU Network Object Model Environment  │
  266. echo    │ D. gnm3  : GNOME - GNU Network Object Model Environment  │
  267. echo    │ E. gnm4  : GNOME - GNU Network Object Model Environment  │
  268. echo    │ F. gra1  : All about graphics                            │
  269. echo    │ G. kde1  : K Desktop Environment                         │
  270. echo    │ H. kde2  : K Desktop Environment                         │
  271. echo    │ I. kde4  : K Desktop Environment                         │
  272. echo    │ J. kpa1  : KDE alpha applications                        │
  273. echo    │ K. sgm1  : Components for a SGML system                  │
  274. echo    │ L. xdev1 : Development under X11                         │
  275. echo    │ M. xwm1  : Window Manager and Desktop                    │
  276. echo    │ N. xwm2  : Window Manager and Desktop                    │
  277. echo    ├──────────────────────────────────────────────────────────┤
  278. echo    │ O. *** Other CDs ***                                     │
  279. echo    │ P. *** Main menu ***                                     │
  280. echo    └──────────────────────────────────────────────────────────┘
  281. choice /C:abcdefghijklmnop /N Your choose ? 
  282. if errorlevel 16 goto main_menu
  283. if errorlevel 15 goto CD3
  284. if errorlevel 14 goto xwm2
  285. if errorlevel 13 goto xwm1
  286. if errorlevel 12 goto xdev1
  287. if errorlevel 11 goto sgm1
  288. if errorlevel 10 goto kpa1
  289. if errorlevel 9 goto kde4
  290. if errorlevel 8 goto kde2
  291. if errorlevel 7 goto kde1
  292. if errorlevel 6 goto gra1
  293. if errorlevel 5 goto gnm4
  294. if errorlevel 4 goto gnm3
  295. if errorlevel 3 goto gnm2
  296. if errorlevel 2 goto gnm1
  297. if errorlevel 1 goto doc1
  298. goto exit
  299.  
  300. :doc1
  301. set pack=doc1
  302. set cd=CD2
  303. goto add
  304.  
  305. :gnm1
  306. set pack=gnm1
  307. set cd=CD2
  308. goto add
  309.  
  310. :gnm2
  311. set pack=gnm2
  312. set cd=CD2
  313. goto add
  314.  
  315. :gnm3
  316. set pack=gnm3
  317. set cd=CD2
  318. goto add
  319.  
  320. :gnm4
  321. set pack=gnm4
  322. set cd=CD2
  323. goto add
  324.  
  325. :gra1
  326. set pack=gra1
  327. set cd=CD2
  328. goto add
  329.  
  330. :kde1
  331. set pack=kde1
  332. set cd=CD2
  333. goto add
  334.  
  335. :kde2
  336. set pack=kde2
  337. set cd=CD2
  338. goto add
  339.  
  340. :kde4
  341. set pack=kde4
  342. set cd=CD2
  343. goto add
  344.  
  345. :kpa1
  346. set pack=kpa1
  347. set cd=CD2
  348. goto add
  349.  
  350. :sgm1
  351. set pack=sgm1
  352. set cd=CD2
  353. goto add
  354.  
  355. :xdev1
  356. set pack=xdev1
  357. set cd=CD2
  358. goto add
  359.  
  360. :xwm1
  361. set pack=xwm1
  362. set cd=CD2
  363. goto add
  364.  
  365. :xwm2
  366. set pack=xwm2
  367. set cd=CD2
  368. goto add
  369.  
  370. :CD3
  371. :CD4
  372. :CD5
  373. cls
  374. echo.
  375. echo    ┌───────────────────── CD 3 ─────────────────────────┐
  376. echo    │ A. beo1  : Extreme Linux (Beowulf)                 │
  377. echo    │ B. ham1  : Amateur Radio (AX.25, CW, Logs, etc.)   │
  378. echo    │ C. pay1  : Commercial Software                     │
  379. echo    │ D. xap1  : X Applications                          │
  380. echo    ├───────────────────── CD 4 ─────────────────────────┤
  381. echo    │ E. aplx1 : ApplixWare Office                       │
  382. echo    │ F. aplx2 : ApplixWare Office                       │
  383. echo    │ G. aplx3 : ApplixWare Office                       │
  384. echo    │ H. aplx4 : ApplixWare Office                       │
  385. echo    │ I. emu1  : Emulators                               │
  386. echo    │ J. fun1  : Games and more                          │
  387. echo    │ K. snd1  : Sound related stuff                     │
  388. echo    │ L. spl1  : Spell checking utilities and databases  │
  389. echo    │ M. spl2  : Spell checking utilities and databases  │
  390. echo    │ N. tex1  : TeX/LaTeX and applications              │
  391. echo    │ O. x3d1  : 3D stuff for X11 and console            │
  392. echo    │ P. zq1   : Source packages                         │
  393. echo    ├───────────────────── CD 5 ─────────────────────────┤
  394. echo    │ Q. zq2   : Source packages                         │
  395. echo    ├────────────────────────────────────────────────────┤
  396. echo    │ R. *** Main menu ***                               │
  397. echo    └────────────────────────────────────────────────────┘
  398. choice /C:abcdefghijklmnopqr /N Your choose ? 
  399. if errorlevel 18 goto main_menu
  400. if errorlevel 17 goto zq2
  401. if errorlevel 16 goto zq1
  402. if errorlevel 15 goto x3d1
  403. if errorlevel 14 goto tex1
  404. if errorlevel 13 goto spl2
  405. if errorlevel 12 goto spl1
  406. if errorlevel 11 goto snd1
  407. if errorlevel 10 goto fun1
  408. if errorlevel 9 goto emu1
  409. if errorlevel 8 goto aplx4
  410. if errorlevel 7 goto aplx3
  411. if errorlevel 6 goto aplx2
  412. if errorlevel 5 goto aplx1
  413. if errorlevel 4 goto xap1
  414. if errorlevel 3 goto pay1
  415. if errorlevel 2 goto ham1
  416. if errorlevel 1 goto beo1
  417. goto exit
  418.  
  419. :beo1
  420. set pack=beo1
  421. set cd=CD3
  422. goto add
  423.  
  424. :ham1
  425. set pack=ham1
  426. set cd=CD3
  427. goto add
  428.  
  429. :pay1
  430. set pack=pay1
  431. set cd=CD3
  432. goto add
  433.  
  434. :xap1
  435. set pack=xap1
  436. set cd=CD3
  437. goto add
  438.  
  439. :aplx1
  440. set pack=aplx1
  441. set cd=CD4
  442. goto add
  443.  
  444. :aplx2
  445. set pack=aplx2
  446. set cd=CD4
  447. goto add
  448.  
  449. :aplx3
  450. set pack=aplx3
  451. set cd=CD4
  452. goto add
  453.  
  454. :aplx4
  455. set pack=aplx4
  456. set cd=CD4
  457. goto add
  458.  
  459. :emu1
  460. set pack=emu1
  461. set cd=CD4
  462. goto add
  463.  
  464. :fun1
  465. set pack=fun1
  466. set cd=CD4
  467. goto add
  468.  
  469. :snd1
  470. set pack=snd1
  471. set cd=CD4
  472. goto add
  473.  
  474. :spl1
  475. set pack=spl1
  476. set cd=CD4
  477. goto add
  478.  
  479. :spl2
  480. set pack=spl2
  481. set cd=CD4
  482. goto add
  483.  
  484. :tex1
  485. set pack=tex1
  486. set cd=CD4
  487. goto add
  488.  
  489. :x3d1
  490. set pack=x3d1
  491. set cd=CD4
  492. goto add
  493.  
  494. :zq1
  495. set pack=zq1
  496. set cd=CD4
  497. goto add
  498.  
  499. :zq2
  500. set pack=zq2
  501. set cd=CD5
  502.  
  503. :add
  504. echo.
  505. echo lhdsetup will now create the %pack% directory.
  506. echo Creating %dirpath%\suse\%pack%
  507. md %dirpath%\suse\%pack%
  508. echo.
  509. echo lhdsetup will now install %pack% files.
  510. echo.
  511. echo Insert SuSE Linux %cd% in %cdrom%
  512. echo.
  513. pause
  514. echo Copying %pack% files...
  515. copy %cdrom%\suse\%pack%\*.* %dirpath%\suse\%pack%
  516. echo.
  517. echo %pack% files copied.
  518. echo.
  519. pause
  520. goto %cd%
  521.  
  522. :clean
  523. cls
  524. echo.
  525. echo    ┌───────────────────────────────────────────────────────────────────┐
  526. echo    │ A. Clean packages files                                           │
  527. echo    │ B. Full cleaning, erase all files (you'll need to re-run install  │
  528. echo    │     in order to add packages)                                     │
  529. echo    └───────────────────────────────────────────────────────────────────┘
  530. choice /C:ab /N What do you want to do ? 
  531. if errorlevel 2 goto clean_full
  532. if errorlevel 1 goto clean_pack
  533. goto exit
  534.  
  535. :clean_pack
  536. echo.
  537. echo lhdsetup will now clean packages files...
  538. if exist %dirpath%\suse\setup\inst-img echo Cleaning setup files.
  539. ..
  540. if exist %dirpath%\suse\setup\inst-img del %dirpath%\suse\setup\
  541. inst-img
  542. if exist %dirpath%\suse\a1\*.* echo Cleaning a1 files...
  543. if exist %dirpath%\suse\a1\*.* del %dirpath%\suse\a1\*.*
  544. if exist %dirpath%\suse\a2\*.* echo Cleaning a2 files...
  545. if exist %dirpath%\suse\a2\*.* del %dirpath%\suse\a2\*.*
  546. if exist %dirpath%\suse\ap1\*.* echo Cleaning ap1 files...
  547. if exist %dirpath%\suse\ap1\*.* del %dirpath%\suse\ap1\*.*
  548. if exist %dirpath%\suse\ap2\*.* echo Cleaning ap2 files...
  549. if exist %dirpath%\suse\ap2\*.* del %dirpath%\suse\ap2\*.*
  550. if exist %dirpath%\suse\d1\*.* echo Cleaning d1 files...
  551. if exist %dirpath%\suse\d1\*.* del %dirpath%\suse\d1\*.*
  552. if exist %dirpath%\suse\d2\*.* echo Cleaning d2 files...
  553. if exist %dirpath%\suse\d2\*.* del %dirpath%\suse\d2\*.*
  554. if exist %dirpath%\suse\e1\*.* echo Cleaning e1 files...
  555. if exist %dirpath%\suse\e1\*.* del %dirpath%\suse\e1\*.*
  556. if exist %dirpath%\suse\n1\*.* echo Cleaning n1 files...
  557. if exist %dirpath%\suse\n1\*.* del %dirpath%\suse\n1\*.*
  558. if exist %dirpath%\suse\n2\*.* echo Cleaning n2 files...
  559. if exist %dirpath%\suse\n2\*.* del %dirpath%\suse\n2\*.*
  560. if exist %dirpath%\suse\sec1\*.* echo Cleaning sec1 files...
  561. if exist %dirpath%\suse\sec1\*.* del %dirpath%\suse\sec1\*.*
  562. if exist %dirpath%\suse\tcl1\*.* echo Cleaning tcl1 files...
  563. if exist %dirpath%\suse\tcl1\*.* del %dirpath%\suse\tcl1\*.*
  564. if exist %dirpath%\suse\x1\*.* echo Cleaning x1 files...
  565. if exist %dirpath%\suse\x1\*.* del %dirpath%\suse\x1\*.*
  566. if exist %dirpath%\suse\x2\*.* echo Cleaning x2 files...
  567. if exist %dirpath%\suse\x2\*.* del %dirpath%\suse\x2\*.*
  568. if exist %dirpath%\suse\x3\*.* echo Cleaning x3 files...
  569. if exist %dirpath%\suse\x3\*.* del %dirpath%\suse\x3\*.*
  570. if exist %dirpath%\suse\xsrv1\*.* echo Cleaning xsrv1 files...
  571. if exist %dirpath%\suse\xsrv1\*.* del %dirpath%\suse\xsrv1\*.*
  572. if exist %dirpath%\suse\xsrv2\*.* echo Cleaning xsrv2 files...
  573. if exist %dirpath%\suse\xsrv2\*.* del %dirpath%\suse\xsrv2\*.*
  574. if exist %dirpath%\suse\xsrv3\*.* echo Cleaning xsrv3 files...
  575. if exist %dirpath%\suse\xsrv3\*.* del %dirpath%\suse\xsrv3\*.*
  576. if exist %dirpath%\suse\xv1\*.* echo Cleaning xv1 files...
  577. if exist %dirpath%\suse\xv1\*.* del %dirpath%\suse\xv1\*.*
  578. if exist %dirpath%\suse\doc1\*.* echo Cleaning doc1 files...
  579. if exist %dirpath%\suse\doc1\*.* del %dirpath%\suse\doc1\*.*
  580. if exist %dirpath%\suse\gnm1\*.* echo Cleaning gnm1 files...
  581. if exist %dirpath%\suse\gnm1\*.* del %dirpath%\suse\gnm1\*.*
  582. if exist %dirpath%\suse\gnm2\*.* echo Cleaning gnm2 files...
  583. if exist %dirpath%\suse\gnm2\*.* del %dirpath%\suse\gnm2\*.*
  584. if exist %dirpath%\suse\gnm3\*.* echo Cleaning gnm3 files...
  585. if exist %dirpath%\suse\gnm3\*.* del %dirpath%\suse\gnm3\*.*
  586. if exist %dirpath%\suse\gnm4\*.* echo Cleaning gnm4 files...
  587. if exist %dirpath%\suse\gnm4\*.* del %dirpath%\suse\gnm4\*.*
  588. if exist %dirpath%\suse\gra1\*.* echo Cleaning gra1 files...
  589. if exist %dirpath%\suse\gra1\*.* del %dirpath%\suse\gra1\*.*
  590. if exist %dirpath%\suse\kde1\*.* echo Cleaning kde1 files...
  591. if exist %dirpath%\suse\kde1\*.* del %dirpath%\suse\kde1\*.*
  592. if exist %dirpath%\suse\kde2\*.* echo Cleaning kde2 files...
  593. if exist %dirpath%\suse\kde2\*.* del %dirpath%\suse\kde2\*.*
  594. if exist %dirpath%\suse\kde4\*.* echo Cleaning kde4 files...
  595. if exist %dirpath%\suse\kde4\*.* del %dirpath%\suse\kde4\*.*
  596. if exist %dirpath%\suse\kpa1\*.* echo Cleaning kpa1 files...
  597. if exist %dirpath%\suse\kpa1\*.* del %dirpath%\suse\kpa1\*.*
  598. if exist %dirpath%\suse\sgm1\*.* echo Cleaning sgm1 files...
  599. if exist %dirpath%\suse\sgm1\*.* del %dirpath%\suse\sgm1\*.*
  600. if exist %dirpath%\suse\xdev1\*.* echo Cleaning xdev1 files...
  601. if exist %dirpath%\suse\xdev1\*.* del %dirpath%\suse\xdev1\*.*
  602. if exist %dirpath%\suse\xwm1\*.* echo Cleaning xwm1 files...
  603. if exist %dirpath%\suse\xwm1\*.* del %dirpath%\suse\xwm1\*.*
  604. if exist %dirpath%\suse\xwm2\*.* echo Cleaning xwm2 files...
  605. if exist %dirpath%\suse\xwm2\*.* del %dirpath%\suse\xwm2\*.*
  606. if exist %dirpath%\suse\beo1\*.* echo Cleaning beo1 files...
  607. if exist %dirpath%\suse\beo1\*.* del %dirpath%\suse\beo1\*.*
  608. if exist %dirpath%\suse\ham1\*.* echo Cleaning ham1 files...
  609. if exist %dirpath%\suse\ham1\*.* del %dirpath%\suse\ham1\*.*
  610. if exist %dirpath%\suse\pay1\*.* echo Cleaning pay1 files...
  611. if exist %dirpath%\suse\pay1\*.* del %dirpath%\suse\pay1\*.*
  612. if exist %dirpath%\suse\xap1\*.* echo Cleaning xap1 files...
  613. if exist %dirpath%\suse\xap1\*.* del %dirpath%\suse\xap1\*.*
  614. if exist %dirpath%\suse\aplx1\*.* echo Cleaning aplx1 files...
  615. if exist %dirpath%\suse\aplx1\*.* del %dirpath%\suse\aplx1\*.*
  616. if exist %dirpath%\suse\aplx2\*.* echo Cleaning aplx2 files...
  617. if exist %dirpath%\suse\aplx2\*.* del %dirpath%\suse\aplx2\*.*
  618. if exist %dirpath%\suse\aplx3\*.* echo Cleaning aplx3 files...
  619. if exist %dirpath%\suse\aplx3\*.* del %dirpath%\suse\aplx3\*.*
  620. if exist %dirpath%\suse\aplx4\*.* echo Cleaning aplx4 files...
  621. if exist %dirpath%\suse\aplx4\*.* del %dirpath%\suse\aplx4\*.*
  622. if exist %dirpath%\suse\emu1\*.* echo Cleaning emu1 files...
  623. if exist %dirpath%\suse\emu1\*.* del %dirpath%\suse\emu1\*.*
  624. if exist %dirpath%\suse\fun1\*.* echo Cleaning fun1 files...
  625. if exist %dirpath%\suse\fun1\*.* del %dirpath%\suse\fun1\*.*
  626. if exist %dirpath%\suse\snd1\*.* echo Cleaning snd1 files...
  627. if exist %dirpath%\suse\snd1\*.* del %dirpath%\suse\snd1\*.*
  628. if exist %dirpath%\suse\spl1\*.* echo Cleaning spl1 files...
  629. if exist %dirpath%\suse\spl1\*.* del %dirpath%\suse\spl1\*.*
  630. if exist %dirpath%\suse\spl2\*.* echo Cleaning spl2 files...
  631. if exist %dirpath%\suse\spl2\*.* del %dirpath%\suse\spl2\*.*
  632. if exist %dirpath%\suse\tex1\*.* echo Cleaning tex1 files...
  633. if exist %dirpath%\suse\tex1\*.* del %dirpath%\suse\tex1\*.*
  634. if exist %dirpath%\suse\x3d1\*.* echo Cleaning x3d1 files...
  635. if exist %dirpath%\suse\x3d1\*.* del %dirpath%\suse\x3d1\*.*
  636. if exist %dirpath%\suse\zq1\*.* echo Cleaning zq1 files...
  637. if exist %dirpath%\suse\zq1\*.* del %dirpath%\suse\zq1\*.*
  638. if exist %dirpath%\suse\zq2\*.* echo Cleaning zq2 files...
  639. if exist %dirpath%\suse\zq2\*.* del %dirpath%\suse\zq2\*.*
  640. echo.
  641. echo Previous packages files cleaned.
  642. echo.
  643. pause
  644. goto main_menu
  645.  
  646. :clean_full
  647. echo.
  648. echo lhdsetup wil now erase %dirpath%
  649. deltree %dirpath%
  650. echo.
  651. echo All files have been removed from disk (if you didn't cancelled).
  652. echo.
  653. pause
  654. goto main_menu
  655.  
  656. :help
  657. echo.
  658. echo Usage:
  659. echo lhdsetup [directory (must be in root)] [CD-ROM drive letter] [kernel]
  660. echo e.g. lhdsetup C:\tmp E eide02
  661. echo.
  662. echo Respect carefully the syntax as given in the example.
  663. echo For more help, see lhdsetup.txt
  664. goto end
  665.  
  666. :boot
  667. echo.
  668. if not exist %dirpath%\suse\setup\loadlin.exe echo %dirpath%\suse
  669. \setup\loadlin.exe missing. Make first install.
  670. if not exist %dirpath%\suse\setup\loadlin.exe echo.
  671. if not exist %dirpath%\suse\setup\loadlin.exe pause
  672. if not exist %dirpath%\suse\setup\loadlin.exe goto main_menu
  673. if not exist %dirpath%\suse\images\initdisk.gz echo %dirpath%\
  674. suse\images\initdisk.gz missing. Make first install.
  675. if not exist %dirpath%\suse\images\initdisk.gz echo.
  676. if not exist %dirpath%\suse\setup\loadlin.exe pause
  677. if not exist %dirpath%\suse\setup\loadlin.exe goto main_menu
  678. :loadlin
  679. %dirpath%\suse\setup\loadlin %dirpath%\suse\images\%kernel% root=200 rw 2 initrd=%dirpath%\suse\images\initdisk.gz
  680.  
  681. :quit
  682. echo.
  683. echo Exiting...
  684. goto end
  685.  
  686. :exit
  687. echo.
  688. echo Abnormal termination
  689.  
  690. :abort
  691. echo.
  692. echo Aborting...
  693.  
  694. :end
  695. echo.
  696. echo Cyril Soldani "C_Soldani@yahoo.com"
  697. echo.
  698. REM /// End of lhdsetup.bat ///
  699.