Advertisement
Guest User

Untitled

a guest
Mar 21st, 2014
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. #!/bin/sh
  2. # N900 PwnPhone V3 Installation Script (Script 1/4)
  3. # Change N900 partition scheme so /home has more space and the file system actually makes sense
  4. foo=`whoami`
  5. if [[ $foo != "root" ]];then
  6. echo "YOU MUST BE ROOT TO EXECUTE THIS SCRIPT"
  7. sleep 1
  8. exit
  9. fi
  10.  
  11. echo "Beginning step 1"
  12. cd /
  13. umount /home/user/MyDocs
  14. sfdisk -c /dev/mmcblk0 1 83
  15. tune2fs -c0 -i0 /dev/mmcblk0p1
  16. mkfs.ext3 /dev/mmcblk0p1
  17. mount /dev/mmcblk0p1 /mnt
  18. cp -a /home/* /mnt
  19. umount /mnt
  20. sfdisk --no-reread /dev/mmcblk0 < /media/mmc1/pwnimage/sys_files/partition_table # change partition table, swap p1 and p2
  21. clear
  22. echo "Script 1 is complete"
  23. echo "To continue, press enter and then CLOSE keyboard"
  24. echo "System will reboot"
  25. read x
  26. reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement