Thanks for the script! I somehow got my MyBook bricked by trying to update to the latest firmware.
I used an Ubuntu Live CD. Had to mount an external drive because I had not enough diskspace on the drive to create the files (downloading firmware didn't work, so I had to use an img file). Further I had to download some tools that are not installed by default when using the live cd.
Everything is now up and running again (and the good thing was my data was still there).
GdB