slitaz-pizza rev 48
rootfs.cgi: add fastboot
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 30 16:19:27 2012 +0200 (2012-03-30) |
parents | 32928f4ae2b2 |
children | 09561bb06ef4 |
files | web/rootfs.cgi |
line diff
1.1 --- a/web/rootfs.cgi Wed Mar 28 10:52:06 2012 +0200 1.2 +++ b/web/rootfs.cgi Fri Mar 30 16:19:27 2012 +0200 1.3 @@ -111,10 +111,24 @@ 1.4 1.5 [ -n "$id" ] || id="$(POST id)" 1.6 1.7 +if [ "$(POST fastboot)" != "" ]; then 1.8 + echo "Fast boot conversion" >> $log 1.9 + notify "$(gettext "Fast boot conversion")" 1.10 + mkdir -p $tmpdir/slitaz-$id/rootfs/etc/tazlito 2> /dev/null 1.11 + cat > $tmpdir/slitaz-$id/rootfs/etc/tazlito/fastboot.iso <<EOT 1.12 +[ -x /usr/bin/lzop ] || tazpkg get-install lzop 1.13 +find * | cpio -o -H newc | lzop -9 > \$1/boot/rootfs.gz 1.14 +EOT 1.15 + cat > $tmpdir/slitaz-$id/rootfs/etc/tazlito/fastboot.rootfs <<EOT 1.16 +sed -i 's/FAST_BOOT_X="no"/FAST_BOOT_X="yes"/' etc/rcS.conf 1.17 +EOT 1.18 +fi 1.19 + 1.20 if [ "$(POST loram)" != "none" ] && [ "$(POST loram)" != "" ]; then 1.21 echo "Low RAM conversion: $(POST loram)" >> $log 1.22 notify "$(gettext "Low RAM conversion:") $(POST loram)" 1.23 mkdir -p $tmpdir/slitaz-$id/rootfs/etc/tazlito 2> /dev/null 1.24 + rm -f $tmpdir/slitaz-$id/rootfs/etc/tazlito/fastboot.iso 2> /dev/null 1.25 cat > $tmpdir/slitaz-$id/rootfs/etc/tazlito/loram.final <<EOT 1.26 cd \$1/.. 1.27 iso=\$(ls *.iso) 1.28 @@ -189,6 +203,8 @@ 1.29 1.30 <h3>$(gettext "ISO image conversion")</h3> 1.31 1.32 + <input type="checkbox" name="fastboot" /> 1.33 + $(gettext "Fast boot") - 1.34 $(gettext "Low RAM support"): 1.35 <select name="loram"> 1.36 <option value="none">$(gettext "No")</option>