slitaz-pizza rev 46

rootfs.cgi: fix loram arg
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 28 10:15:41 2012 +0200 (2012-03-28)
parents 9ec24c258ef9
children 32928f4ae2b2
files web/rootfs.cgi
line diff
     1.1 --- a/web/rootfs.cgi	Tue Mar 27 18:27:10 2012 +0100
     1.2 +++ b/web/rootfs.cgi	Wed Mar 28 10:15:41 2012 +0200
     1.3 @@ -111,16 +111,16 @@
     1.4  
     1.5  [ -n "$id" ] || id="$(POST id)"
     1.6  
     1.7 -if [ "$(GET loram)" != "none" ] && [ "$(GET loram)" != "" ]; then
     1.8 -	echo "Low RAM conversion: $(GET loram)" >> $log
     1.9 -	notify "$(gettext "Low RAM conversion:") $(GET loram)"
    1.10 +if [ "$(POST loram)" != "none" ] && [ "$(POST loram)" != "" ]; then
    1.11 +	echo "Low RAM conversion: $(POST loram)" >> $log
    1.12 +	notify "$(gettext "Low RAM conversion:") $(POST loram)"
    1.13  	mkdir -p $tmpdir/slitaz-$id/rootfs/etc/tazlito 2> /dev/null
    1.14  	cat > $tmpdir/slitaz-$id/rootfs/etc/tazlito/loram.final <<EOT
    1.15  cd \$1/..
    1.16  iso=\$(ls *.iso)
    1.17  if [ -s "\$iso" ]; then
    1.18  	echo "Converting \$iso to low ram iso..."
    1.19 -	yes y | tazlito build-loram \$iso \$iso.\$\$ $(GET loram)
    1.20 +	yes y | tazlito build-loram \$iso \$iso.\$\$ $(POST loram)
    1.21  	mv -f \$iso.\$\$ \$iso
    1.22  	md5sum \$iso > \${iso%.iso}.md5
    1.23  	echo "================================================================================"