Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # N900 PwnPhone V3 Installation Script (Script 1/4)
- # Change N900 partition scheme so /home has more space and the file system actually makes sense
- foo=`whoami`
- if [[ $foo != "root" ]];then
- echo "YOU MUST BE ROOT TO EXECUTE THIS SCRIPT"
- sleep 1
- exit
- fi
- echo "Beginning step 1"
- cd /
- umount /home/user/MyDocs
- sfdisk -c /dev/mmcblk0 1 83
- tune2fs -c0 -i0 /dev/mmcblk0p1
- mkfs.ext3 /dev/mmcblk0p1
- mount /dev/mmcblk0p1 /mnt
- cp -a /home/* /mnt
- umount /mnt
- sfdisk --no-reread /dev/mmcblk0 < /media/mmc1/pwnimage/sys_files/partition_table # change partition table, swap p1 and p2
- clear
- echo "Script 1 is complete"
- echo "To continue, press enter and then CLOSE keyboard"
- echo "System will reboot"
- read x
- reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement