Advertisement
ciusss89

backup-firmware.sh

Sep 20th, 2013
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.41 KB | None | 0 0
  1. # Dockstar backup script.
  2. echo "Incoming backup procedure "
  3. mkdir /tmp/backup
  4. mount /dev/sda1 /tmp/backup
  5. cd /tmp/backup
  6. wget http://download.doozan.com/uboot/nanddump
  7. chmod +x nanddump
  8. echo "Starting backup firmare image"
  9. ./nanddump -nof uboot-mtd0-dump /dev/mtd0
  10. ./nanddump -nof uboot-original -s 0 -l 0x80000 /dev/mtd0
  11. ./nanddump -nof uImage-mtd1-dump /dev/mtd1
  12. ./nanddump -nof rootfs-mtd2-dump /dev/mtd2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement