2013-06-28 09:40:26 :: not enough free space in /home (need at least 200 MB free), quitting.
~ $ diff /usr/sbin/maemo-optify-auto-opt.sh /usr/sbin/maemo-optify-auto-opt___ sh.ori --- /usr/sbin/maemo-optify-auto-opt.sh +++ /usr/sbin/maemo-optify-auto-opt___sh.ori @@ -142,11 +142,7 @@ fi dfree "/home" -#peterleinchen -log "peterleinchen, ?: $?, space: $space" -#if [ $? -lt $HOME_SPACE_LIMIT ] -if [ $space -lt $HOME_SPACE_LIMIT ] -#pl end +if [ $? -lt $HOME_SPACE_LIMIT ] then log "not enough free space in /home (need at least $HOME_SPACE_LIMIT MB free), quitting." return 0
~ $ diff /usr/sbin/maemo-optify-lib.sh /usr/sbin/maemo-optify-lib___sh.ori --- /usr/sbin/maemo-optify-lib.sh +++ /usr/sbin/maemo-optify-lib___sh.ori @@ -9,17 +9,8 @@ # returns: the amount of free space in MB dfree() { - #peterleinchen, for busybox-power - if [ "$(readlink /usr/sbin/watchdog)" == "/bin/busybox" ]; then - #power busybox - space=`/bin/busybox stat -ft /home | /bin/busybox awk '{print int($5*$8/(1024*1024)) }' | head -1` - else - #standard busybox - space=`/bin/busybox stat -ft /home | /bin/busybox awk '{print int($5*$9/(1024*1024)) }'` - fi - #pl end + space=`/bin/busybox stat -ft /home | /bin/busybox awk '{print int($5*$9/(1024*1024)) }'` [ $? -ne 0 ] && return 0 - #OMG this will return just 0 to 255 return $space }