tazpanel rev 77
live.cgi: add loram tool
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 12 21:22:41 2011 +0200 (2011-04-12) |
parents | 7ac8e561d0a5 |
children | 73c42017a5a2 |
files | live.cgi |
line diff
1.1 --- a/live.cgi Tue Apr 12 04:24:35 2011 +0200 1.2 +++ b/live.cgi Tue Apr 12 21:22:41 2011 +0200 1.3 @@ -4,8 +4,11 @@ 1.4 # 1.5 # Copyright (C) 2011 SliTaz GNU/Linux - GNU gpl v3 1.6 # 1.7 -echo "Content-Type: text/html" 1.8 -echo "" 1.9 + 1.10 + 1.11 +. /usr/bin/httpd_helper.sh 1.12 + 1.13 +header 1.14 1.15 # Common functions from libtazpanel 1.16 . lib/libtazpanel 1.17 @@ -24,20 +27,22 @@ 1.18 # Commands executed in Xterm first 1.19 # 1.20 1.21 -case "$QUERY_STRING" in 1.22 - write-iso=*) 1.23 +case " $(GET) " in 1.24 + *\ write-iso\ *) 1.25 comp=${QUERY_STRING#write-iso=} 1.26 $TERMINAL $TERM_OPTS \ 1.27 -T "write-iso" \ 1.28 -e "tazlito writeiso $comp" & ;; 1.29 - gen-liveusb=*) 1.30 + *\ gen-liveusb\ *) 1.31 dev=`httpd -d ${QUERY_STRING#gen-liveusb=}` 1.32 $TERMINAL $TERM_OPTS \ 1.33 -T "Tazusb gen-liveusb" \ 1.34 -e "tazusb gen-liveusb $dev; \ 1.35 gettext \"ENTER to quit\"; read i" & ;; 1.36 - *) 1.37 - continue ;; 1.38 + *\ loramoutput\ *) 1.39 + $TERMINAL $TERM_OPTS \ 1.40 + -T "build loram iso" \ 1.41 + -e "tazlito build-loram $(GET input) $(GET loramoutput) $(GET type)" & ;; 1.42 esac 1.43 1.44 # 1.45 @@ -62,23 +67,7 @@ 1.46 <p>`gettext "Create and manage Live CD or USB SliTaz systems"`<p> 1.47 </div> 1.48 1.49 -<h3>`gettext "Write a Live CD"`</h3> 1.50 -<p> 1.51 - `gettext "The command writeiso will generate an ISO image of the 1.52 - current filesystem as is, including all files in the /home directory. 1.53 - It is an easy way to remaster a SliTaz Live system, you just have 1.54 - to: boot, modify, writeiso."` 1.55 -</p> 1.56 -<form method="get" action="$SCRIPT_NAME"> 1.57 - `gettext "Compression type:"` 1.58 - <select name="write-iso"> 1.59 - <option value="gzip">gzip</option> 1.60 - <option value="lzma">lzma</option> 1.61 - <option value="none">none</option> 1.62 - </select> 1.63 - <input type="submit" value="`gettext "Write ISO"`" /> 1.64 -</form> 1.65 - 1.66 +<a name="liveusb"></a> 1.67 <h3>`gettext "Live USB"`</h3> 1.68 <p> 1.69 `gettext "Generate SliTaz LiveUSB media and boot in RAM! Insert a 1.70 @@ -102,6 +91,54 @@ 1.71 <input type="submit" value="`gettext "Generate"`" /> 1.72 </form> 1.73 1.74 +<a name="livecd"></a> 1.75 +<h3>`gettext "Write a Live CD"`</h3> 1.76 +<p> 1.77 + `gettext "The command writeiso will generate an ISO image of the 1.78 + current filesystem as is, including all files in the /home directory. 1.79 + It is an easy way to remaster a SliTaz Live system, you just have 1.80 + to: boot, modify, writeiso."` 1.81 +</p> 1.82 +<form method="get" action="$SCRIPT_NAME"> 1.83 + `gettext "Compression type:"` 1.84 + <select name="write-iso"> 1.85 + <option value="gzip">gzip</option> 1.86 + <option value="lzma">lzma</option> 1.87 + <option value="none">none</option> 1.88 + </select> 1.89 + <input type="submit" value="`gettext "Write ISO"`" /> 1.90 +</form> 1.91 + 1.92 +<h3>`gettext "Live CD tools"`</h3> 1.93 +<a name="loram"></a> 1.94 +<h4>`gettext "Convert ISO to loram"`</h4> 1.95 +<p> 1.96 + `gettext "This command will convert an ISO image of a SliTaz Live CD 1.97 + to a new ISO image requiring less RAM to run."` 1.98 +</p> 1.99 +<form method="get" action="$SCRIPT_NAME#loram"> 1.100 + <table> 1.101 + <tr> 1.102 + <td>`gettext "ISO to convert"` 1.103 + <input type="text" name="input" value="/root/" /></td> 1.104 + </tr> 1.105 + <tr> 1.106 + <td><input type="radio" name="type" value="ram" checked />`gettext "The filesystem is always in RAM"`.</td> 1.107 + </tr> 1.108 + <tr> 1.109 + <td><input type="radio" name="type" value="smallcdrom" />`gettext "The filesystem may be on a small CDROM"`.</td> 1.110 + </tr> 1.111 + <tr> 1.112 + <td><input type="radio" name="type" value="cdrom" />`gettext "The filesystem may be on a large CDROM"`.</td> 1.113 + </tr> 1.114 + <tr> 1.115 + <td>`gettext "ISO to create"` 1.116 + <input type="text" name="loramoutput" value="/root/loram.iso" /></td> 1.117 + </tr> 1.118 + </table> 1.119 + <input type="submit" value="`gettext "Convert ISO to loram"`" /> 1.120 +</form> 1.121 + 1.122 EOT 1.123 ;; 1.124 esac