Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/sbin/sh
- #
- # This program is free software; you can redistribute it and/or modify it
- # under the terms of the GNU Library General Public License as published
- # by the Free Software Foundation; either version 2, or (at your option)
- # any later version.
- #
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>
- #
- mount /dev/block/mmcblk0p1 /sdcard
- exec >> /sdcard/install.log 2>&1
- date
- echo ***************Log Start***************
- # unmount partitions
- echo *********Begining Formatting RFS option chosen***********
- echo ***************Unmounting Drives***************
- #umount -a -t rfs
- #umount -a -t ext4
- #mount -o remount,rw rootfs /
- cat /proc/mounts # > /etc/mtab
- #mount -o remount,ro rootfs /
- #cat /etc/mtab
- echo ***************Drives Unmounted***************
- # System partition
- echo ***************Begin System Partition***************
- /tmp/busybox umount -l /system
- /sbin/dd if=/dev/zero of=/dev/block/stl9 bs=4096 count=2560
- /tmp/fat.format -S 4096 -s 1 -F 32 /dev/block/stl9
- /tmp/busybox mount -t rfs -o check=no /dev/block/stl9 /system
- echo ***************System Partition Done***************
- # Cache partition
- echo ***************Begin Cache Partition***************
- /tmp/busybox umount -l /cache
- /tmp/fat.format -S 4096 -s 1 -F 16 /dev/block/stl11
- /tmp/busybox mount -t rfs -o nosuid,nodev,check=no /dev/block/stl11 /cache
- echo ***************Cache Partition Done***************
- # Data partition
- echo ***************Begin Data Partion***************
- /tmp/busybox umount -l /data
- /tmp/fat.format -S 4096 -s 1 -F 32 /dev/block/stl10
- /tmp/busybox mount -t rfs -o nosuid,nodev,check=no /dev/block/stl10 /data
- sync
- echo ***************Data Partion Done***************
- echo ***************Finished Formatting Partions***************
Advertisement
Add Comment
Please, Sign In to add comment