slitaz-pizza rev 34
rootfs loram: Use notify + log and dont dispplay message if empty (cool feature Pascal :-)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Mar 27 10:06:29 2012 +0200 (2012-03-27) |
parents | fc0563855ade |
children | e457bafd41fc |
files | web/rootfs.cgi |
line diff
1.1 --- a/web/rootfs.cgi Tue Mar 27 09:57:00 2012 +0200 1.2 +++ b/web/rootfs.cgi Tue Mar 27 10:06:29 2012 +0200 1.3 @@ -110,8 +110,9 @@ 1.4 1.5 [ -n "$id" ] || id="$(POST id)" 1.6 1.7 -if [ "$(GET loram)" != "none" ]; then 1.8 - echo "Low RAM convertion: $(GET loram)" | tee -a $log 1.9 +if [ "$(GET loram)" != "none" ] || [ "$(GET loram)" != "" ]; then 1.10 + echo "Low RAM convertion: $(GET loram)" >> $log 1.11 + notify "$(gettext "Low RAM convertion:") $(GET loram)" 1.12 mkdir -p $tmpdir/slitaz-$id/rootfs/etc/tazlito 2> /dev/null 1.13 cat > $tmpdir/slitaz-$id/rootfs/etc/tazlito/loram.final <<EOT 1.14 cd \$1/..