View Single Post
Posts: 181 | Thanked: 82 times | Joined on Jan 2010
#8
@reinob

Although the updated code for dfree works in the commandline and shows the space available (25450 MiB for me), it shows a different value when executed from inside a script. I have made a test script trying to understand what the boot time script is really getting:

Code:
#!/bin/sh
. /usr/sbin/maemo-optify-lib.sh
dfree "/home"
echo $?
It uses the same codes as the original script to call the dfree function. For me, the result of this script is 144 MiB, lower than the required 200 MiB, and therefore the message is still being logged to the file on boot time. Any idea? I'm not expert on linux scripts.

Thanks.

Last edited by ikerrg; 2012-11-08 at 11:08.