tiny-slitaz annotate step3.php @ rev 38

helper: don't build slitaz.iso twice (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 26 19:36:25 2023 +0000 (13 months ago)
parents 577e6e91216d
children
rev   line source
pascal@0 1 <?php
pascal@0 2
pascal@0 3 if (isset($_POST['kernel']) &&
pascal@5 4 (isset($_POST['modules'])) &&
pascal@0 5 !isset($_POST['packages'])) {
pascal@0 6 if (isset($_POST['selected'])) {
pascal@0 7 upload("mypackages");
pascal@0 8 $last = count($_POST['selected'])-1;
pascal@0 9 if ($_POST['selected'][$last] == "uploaded") {
pascal@0 10 unset($_POST['selected'][$last]);
pascal@0 11 }
pascal@5 12 $_POST['packages'] = $_POST['modules'].' '.implode(" ",$_POST['selected']);
pascal@0 13 unset($_POST['selected']);
pascal@0 14 }
pascal@0 15 }
pascal@0 16
pascal@0 17 if (isset($_POST['kernel']) &&
pascal@5 18 (isset($_POST['modules'])) &&
pascal@0 19 !isset($_POST['packages'])) {
pascal@0 20
pascal@0 21 mkdir($_POST["tmp_dir"]."/fs");
pascal@0 22 if ($_POST['kernel'] != "custom") {
pascal@0 23 shell_exec("sudo ./helper --pre-install ".$_POST['kernel'].
pascal@0 24 " ".$_POST['tmp_dir']);
pascal@0 25 }
pascal@0 26 ?>
pascal@0 27
pascal@6 28 <div class="box">
pascal@6 29 <h3>[Step 3/5] Additional RAM filesystem</h3>
pascal@0 30
pascal@0 31 <form enctype="multipart/form-data" action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post" name="packages">
pascal@0 32
pascal@6 33 <?php
pascal@0 34 echo shell_exec("./helper --list-pkgs ".$_POST["tmp_dir"]);
pascal@0 35 post_hidden();
pascal@0 36 ?>
pascal@0 37
pascal@6 38 <div align="center">
pascal@6 39 <input name="continue" value="Continue" type="submit" />
pascal@6 40 </div>
pascal@6 41
pascal@6 42 </form>
pascal@0 43 </div>
pascal@0 44
pascal@0 45 <?php
pascal@0 46 }
pascal@0 47 ?>