fixes for the rpi reboot feature

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>