引用:
原帖由 BlackBird 於 2011-6-28 18:40 發表
無wipe cache的話應該唔洗
引用:
#!/system/bin/sh
insmod /system/lib/modules/jbd2.ko
insmod /system/lib/modules/ext2.ko
insmod /system/lib/modules/ext3.ko
insmod /system/lib/modules/ext4.ko
if [ ! -d /sd-ext ];
then
busybox mount -o rw,remount /
install -m 774 -o 1000 -g 1000 -d /sd-ext
busybox mount -o ro,remount /
fi
mkdir /sd-ext
busybox chown 1000:1000 /sd-ext
busybox chmod 777 /sd-ext
/system/xbin/mount -t auto /dev/block/mmcblk0p2 /sd-ext
if [ -e /dev/block/mmcblk0p2 ]; then
if [ -d /data/app ]; then
mkdir /sd-ext/app
chmod 777 /sd-ext/app
cp -a /data/app/* /sd-ext/app/
rm -r /data/app
ln -s /sd-ext/app /data/app
fi
if [ -d /data/app-private ]; then
mkdir /sd-ext/app-private
chmod 777 /sd-ext/app-private
cp -a /data/app-private/* /sd-ext/app-private/
rm -r /data/app-private
ln -s /sd-ext/app-private /data/app-private
fi
fi
不如直接起段 code 到加番 , 變做 auto dav2ext