add reboot fix for mtd (thanks, wbx)