tazpanel diff live.cgi @ rev 29
Add support for write-iso in live.cgi with nice select box :-)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Apr 05 03:35:45 2011 +0200 (2011-04-05) |
parents | 79c49d85215d |
children | 55ce67f05cf9 |
line diff
1.1 --- a/live.cgi Tue Apr 05 01:59:33 2011 +0200 1.2 +++ b/live.cgi Tue Apr 05 03:35:45 2011 +0200 1.3 @@ -19,12 +19,29 @@ 1.4 TITLE="- Live" 1.5 1.6 # 1.7 +# Commands executed in Xterm first 1.8 +# 1.9 + 1.10 +case "$QUERY_STRING" in 1.11 + write-iso=*) 1.12 + COMPRESSION=${QUERY_STRING#write-iso=} 1.13 + xterm $XTERM_OPTS \ 1.14 + -title "write-iso" \ 1.15 + -e "tazlito writeiso $COMPRESSION" & ;; 1.16 + *) 1.17 + continue ;; 1.18 +esac 1.19 + 1.20 +# 1.21 # Commands 1.22 # 1.23 1.24 case "$QUERY_STRING" in 1.25 - gen-distro) 1.26 - echo "" ;; 1.27 + create) 1.28 + # 1.29 + # Create a flavor file and ISO in option with all settings 1.30 + # 1.31 + gettext "TODO" ;; 1.32 *) 1.33 # 1.34 # Default xHTML content 1.35 @@ -36,6 +53,21 @@ 1.36 <p>`gettext "Create and manage Live CD or USB SliTaz systems"`<p> 1.37 </div> 1.38 1.39 +<h3>`gettext "Write an ISO"`</h3> 1.40 +<p> 1.41 + `gettext "Writeiso will generate an ISO image of the current filesystem 1.42 + as is, including the /home directory. It is an easy way to remaster a 1.43 + SliTaz Live system, you just have to: boot, modify, writeiso."` 1.44 +</p> 1.45 +<form method="get" action="$SCRIPT_NAME"> 1.46 + `gettext "Compression type:"` 1.47 + <select name="write-iso"> 1.48 + <option value="gzip">gzip</option> 1.49 + <option value="lzma">lzma</option> 1.50 + <option value="none">none</option> 1.51 + </select> 1.52 + <input type="submit" value="`gettext "write ISO"`" /> 1.53 +</form 1.54 EOT 1.55 ;; 1.56 esac