# HG changeset patch # User Christophe Lincoln # Date 1301972993 -7200 # Node ID 55ce67f05cf9fd262cc08c767432b6ca0cffc065 # Parent 167d42c156fae67862b844c1590807e4db23f6d4 live.cgi: Add support to tazUSB gen-liveusb diff -r 167d42c156fa -r 55ce67f05cf9 live.cgi --- a/live.cgi Tue Apr 05 03:35:45 2011 +0200 +++ b/live.cgi Tue Apr 05 05:09:53 2011 +0200 @@ -24,10 +24,16 @@ case "$QUERY_STRING" in write-iso=*) - COMPRESSION=${QUERY_STRING#write-iso=} + comp=${QUERY_STRING#write-iso=} xterm $XTERM_OPTS \ - -title "write-iso" \ - -e "tazlito writeiso $COMPRESSION" & ;; + -T "write-iso" \ + -e "tazlito writeiso $comp" & ;; + gen-liveusb=*) + dev=`httpd -d ${QUERY_STRING#gen-liveusb=}` + xterm $XTERM_OPTS \ + -T "Tazusb gen-liveusb" \ + -e "tazusb gen-liveusb $dev; \ + gettext \"ENTER to quit\"; read i" & ;; *) continue ;; esac @@ -53,11 +59,12 @@

`gettext "Create and manage Live CD or USB SliTaz systems"`

-

`gettext "Write an ISO"`

+

`gettext "Write a Live CD"`

- `gettext "Writeiso will generate an ISO image of the current filesystem - as is, including the /home directory. It is an easy way to remaster a - SliTaz Live system, you just have to: boot, modify, writeiso."` + `gettext "The command writeiso will generate an ISO image of the + current filesystem as is, including all files in the /home directory. + It is an easy way to remaster a SliTaz Live system, you just have + to: boot, modify, writeiso."`

`gettext "Compression type:"` @@ -67,7 +74,31 @@ -
+ +

`gettext "Live USB"`

+

+ `gettext "Generate SliTaz LiveUSB media and boot in RAM! Insert a + LiveCD into the cdrom drive, select the correct device and press + Generate."` +

+
+ `gettext "USB Media to use:"` + + +
+ EOT ;; esac