View Single Post
Posts: 181 | Thanked: 82 times | Joined on Jan 2010
#5
Well, I have made some progress, but still need an expert help.

The script which is generating the log is /usr/sbin/maemo-optify-auto-opt.sh, which calls the function dfree inside /usr/sbin/maemo-optify-lib.sh. dfree function is as follows

Code:
dfree()  
 {  
   space=`/bin/busybox stat -ft /home | /bin/busybox awk '{print int($5*$9/(1024*1024)) }'`  
   [ $? -ne 0 ] && return 0  
   return $space  
 }
If you execute the command
Code:
stat -ft /home | awk '{print int($5*$9/(1024*1024)) }'
you get two integers, not only one, and the last one is 0. Indeed, I have made an script to see the value of the returned $space variable, and it is 0!!! I cannot understand why it happens only in the last days (maybe a change in the busybox stat command?) Any idea?

On the other hand, I do not know where the /usr/sbin/maemo-optify-auto-opt.sh is called from on every reboot.

Please, help.

Thanks a lot.

Last edited by ikerrg; 2012-11-07 at 19:22.