S31HW /system remount スクリプト [Android端末 S31HW]
http://android.modaco.com/content/htc-hero-hero-modaco-com/295691/easy-system-remount-script/
の記事から。
(Blogに慣れてないのがバレバレな引用)
S31HW用に微変更込みですが、まぁ、ご自分のデバイスで
# mount
と入れてみてからこの内容でいいのか、自分で判断してね。
Place this file in /system/bin/
filename remount, or whatever you would like to call it.
Don't forget to change the mode to 755, and then reboot the system to get it recognized.
Here's the script body:
の記事から。
(Blogに慣れてないのがバレバレな引用)
S31HW用に微変更込みですが、まぁ、ご自分のデバイスで
# mount
と入れてみてからこの内容でいいのか、自分で判断してね。
Place this file in /system/bin/
filename remount, or whatever you would like to call it.
Don't forget to change the mode to 755, and then reboot the system to get it recognized.
Here's the script body:
#!/system/bin/sh # # Remount /system partition case "$1" in ro) echo "Setting /system to RO (read only)" mount -o ro,remount -t yaffs2 /dev/block/mtdblock4 /system echo "" echo "Current status of /system mount:" mount |grep "/system type" echo "" ;; rw) echo "Setting /system to RW (read write)" mount -o rw,remount -t yaffs2 /dev/block/mtdblock4 /system echo "" echo "Current status of /system mount:" mount |grep "/system type" echo "" ;; status) echo "" echo "Current status of /system mount:" mount |grep "/system type" echo "" ;; *) echo "Valid input format:" echo " remount [ro|rw|status]" echo " ro = read only (default)" echo " rw = read write (to make modifications)" echo " status = current mount mode" echo "" echo "Current status of /system mount:" mount |grep "/system type" echo "" exit 1 esac
2011-03-30 12:12
nice!(0)
コメント(0)
トラックバック(0)
コメント 0