wok rev 4046

slitaz-loram-*: fix release cdrom
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 09 12:11:22 2009 +0200 (2009-09-09)
parents d14d3403f408
children f20247e26bdc
files slitaz-loram-cdrom/receipt slitaz-loram-http/receipt
line diff
     1.1 --- a/slitaz-loram-cdrom/receipt	Wed Sep 09 03:33:21 2009 +0000
     1.2 +++ b/slitaz-loram-cdrom/receipt	Wed Sep 09 12:11:22 2009 +0200
     1.3 @@ -40,8 +40,8 @@
     1.4  $i# Try to release the cdrom (from slitaz-loram-cdrom package)
     1.5  $i release_cdrom()
     1.6  $i {
     1.7 -$i	FREEMEM=\$(free | awk '{ n = \$NF } END { print n }')	
     1.8 -$i	if [ \$FREEMEM -gt \$(du -s \$FS | awk '{ print \$1+40000 }') ]; then
     1.9 +$i	FREEMEM=\$(busybox free | busybox awk '{ n = \$NF } END { print n }')	
    1.10 +$i	if [ \$FREEMEM -gt \$(busybox du -s \$FS | busybox awk '{ print \$1+40000 }') ]; then
    1.11  $i		cp -a \$FS /.usr.fs
    1.12  $i		status
    1.13  $i		echo -n "Releasing CD-ROM..."
     2.1 --- a/slitaz-loram-http/receipt	Wed Sep 09 03:33:21 2009 +0000
     2.2 +++ b/slitaz-loram-http/receipt	Wed Sep 09 12:11:22 2009 +0200
     2.3 @@ -40,8 +40,8 @@
     2.4  $i# Try to release http link (from slitaz-loram-http package)
     2.5  $i release_http()
     2.6  $i {
     2.7 -$i	FREEMEM=\$(free | awk '{ n = \$NF } END { print n }')	
     2.8 -$i	if [ \$FREEMEM -gt \$(du -s \$FS | awk '{ print \$1+40000 }') ]; then
     2.9 +$i	FREEMEM=\$(busybox free | busybox awk '{ n = \$NF } END { print n }')	
    2.10 +$i	if [ \$FREEMEM -gt \$(busybox du -s \$FS | busybox awk '{ print \$1+40000 }') ]; then
    2.11  $i		status
    2.12  $i		echo -n "Loading /usr in memory..."
    2.13  $i		cp -a \$FS /.usr.fs