although I don't think depending on rootsh is a good idea.
There must be some kind of API in dbus or somewhere to tell the device to reboot properly instead of running shell commands.
run-standalone.sh dbus-send --system --type=method_call --dest="com.nokia.mce" --print-reply "/com/nokia/mce/request" com.nokia.mce.request.req_reboot