# HG changeset patch # User Pascal Bellard # Date 1252491082 -7200 # Node ID bf6b4e59baf337de9d9a411dfa1bec6a72733445 # Parent d14d3403f408b232ed587ed7372332b1c5daed38 slitaz-loram-*: fix release cdrom diff -r d14d3403f408 -r bf6b4e59baf3 slitaz-loram-cdrom/receipt --- a/slitaz-loram-cdrom/receipt Wed Sep 09 03:33:21 2009 +0000 +++ b/slitaz-loram-cdrom/receipt Wed Sep 09 12:11:22 2009 +0200 @@ -40,8 +40,8 @@ $i# Try to release the cdrom (from slitaz-loram-cdrom package) $i release_cdrom() $i { -$i FREEMEM=\$(free | awk '{ n = \$NF } END { print n }') -$i if [ \$FREEMEM -gt \$(du -s \$FS | awk '{ print \$1+40000 }') ]; then +$i FREEMEM=\$(busybox free | busybox awk '{ n = \$NF } END { print n }') +$i if [ \$FREEMEM -gt \$(busybox du -s \$FS | busybox awk '{ print \$1+40000 }') ]; then $i cp -a \$FS /.usr.fs $i status $i echo -n "Releasing CD-ROM..." diff -r d14d3403f408 -r bf6b4e59baf3 slitaz-loram-http/receipt --- a/slitaz-loram-http/receipt Wed Sep 09 03:33:21 2009 +0000 +++ b/slitaz-loram-http/receipt Wed Sep 09 12:11:22 2009 +0200 @@ -40,8 +40,8 @@ $i# Try to release http link (from slitaz-loram-http package) $i release_http() $i { -$i FREEMEM=\$(free | awk '{ n = \$NF } END { print n }') -$i if [ \$FREEMEM -gt \$(du -s \$FS | awk '{ print \$1+40000 }') ]; then +$i FREEMEM=\$(busybox free | busybox awk '{ n = \$NF } END { print n }') +$i if [ \$FREEMEM -gt \$(busybox du -s \$FS | busybox awk '{ print \$1+40000 }') ]; then $i status $i echo -n "Loading /usr in memory..." $i cp -a \$FS /.usr.fs