So if all the script does is restart half of the daemons in the device, why you don't do it the safe and proper way ("reboot") which would guarantee "100% Nokia N900 OPTIMIZATION!!!!!"