SSブログ

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:
#!/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

nice!(0)  コメント(0)  トラックバック(0) 

nice! 0

コメント 0

コメントを書く

お名前:
URL:
コメント:
画像認証:
下の画像に表示されている文字を入力してください。

Facebook コメント

トラックバック 0

この広告は前回の更新から一定期間経過したブログに表示されています。更新すると自動で解除されます。