okay i will make rthe script an d put it in a zip later today...
Alright man, tell me how to test it and I will.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
okay i will make rthe script an d put it in a zip later today...
its a lowercase L lol
#!/system/bin/sh
# Wait for the system to mount the internal media and remout it as r/o
# this should prevent the system from writing to it until we make the
# switch, yet keeps the /data/media r/w, so at the end it won't be r/o
for i in $(seq 1 1 3000)
do
if ( grep -c "/storage/sdcard0" /proc/mounts ); then
mount -o remount,ro /storage/sdcard0
break;
fi
usleep 100000
done
# now wait for the external media and remount
for i in $(seq 1 1 3000)
do
if ( grep -c "/storage/extSdCard" /proc/mounts ); then
# create new temporary mount point
mount -o remount,rw /
mkdir /storage/tmpmnt
mount -o remount,ro /
# do the rebinding using the temporary mount point
mount -o bind /data/media /storage/tmpmnt
mount -o bind /storage/extSdCard /storage/sdcard0
mount -o bind /storage/extSdCard /data/media
umount /mnt/extSdCard
mount -o bind /storage/tmpmnt /storage/extSdCard
umount /storage/tmpmnt
# make bind for ums mode
mkdir -p /storage/extSdCard/external_sd/sdcard1
touch /storage/extSdCard/external_sd/.nomedia
mount -o bind /storage/sdcard0 /storage/extSdCard/external_sd/sdcard1
# done
break;
fi
usleep 100000
done
exit
the original script should allow for this to work:
put this in /system/etc/init.d/ after init.d has been enabledCode:#!/system/bin/sh # Wait for the system to mount the internal media and remout it as r/o # this should prevent the system from writing to it until we make the # switch, yet keeps the /data/media r/w, so at the end it won't be r/o for i in $(seq 1 1 3000) do if ( grep -c "/storage/sdcard0" /proc/mounts ); then mount -o remount,ro /storage/sdcard0 break; fi usleep 100000 done # now wait for the external media and remount for i in $(seq 1 1 3000) do if ( grep -c "/storage/extSdCard" /proc/mounts ); then # create new temporary mount point mount -o remount,rw / mkdir /storage/tmpmnt mount -o remount,ro / # do the rebinding using the temporary mount point mount -o bind /data/media /storage/tmpmnt mount -o bind /storage/extSdCard /storage/sdcard0 mount -o bind /storage/extSdCard /data/media umount /mnt/extSdCard mount -o bind /storage/tmpmnt /storage/extSdCard umount /storage/tmpmnt # make bind for ums mode mkdir -p /storage/extSdCard/external_sd/sdcard1 touch /storage/extSdCard/external_sd/.nomedia mount -o bind /storage/sdcard0 /storage/extSdCard/external_sd/sdcard1 # done break; fi usleep 100000 done exit
it should run and work
What should the file be called?? And can I just merge the two etc. folders into one? Having two makes me get OCD-like symptoms, haha.
That goes into the ext2int file? How do we know if init.d has been enabled?
the one with bluetooth and init.d folders, there should be a file called install-recovery.sh
if not, thats also good
just create it and put this in the file:
#!/system/bin/sh
export PATH=/sbin:/system/sbin:/system/bin:/system/xbin
/system/bin/logwrapper /system/xbin/run-parts /system/etc/init.d
this will enable init.d so the ext2int script will work.
note: you also need busybox installed for this to work!
Hello there peeps,
Been lurking for a bit. This thread has picked up quite a bit of speed. Nice.
Maybe you could take a look at an app called directory bind, it mounts quickly and allows for the remap of any, [just about] dir to the extsd. I've allso got an app that tries to mount the extsd to int by way of a script, but it's looking for a second partition on the extsd labeled as SD-EXT . The app is called Mounts2SD it depends on loading a script to start the swap. I havent tried it on my Ring yet, tried on a craneevb v13[pop in asia, it's branded as a craig tab] But I havent been able to get to the recovery.
Great work peeps, I love the kernel, runs quick and smooth. I'll try v5 as soon as the finishing touches are applied
Ben
#!/system/bin/sh
export PATH=/sbin:/system/sbin:/system/bin:/system/xbin
/system/bin/logwrapper /system/xbin/run-parts /system/etc/init.d
goes in /system/etc/install-recovery.sh
if it exists delete it and remake it with taht text (its the file that overwrites cwm on boot)
then set perms as 755
the long text i posted earlier goes into that 11external2internalsd file, delete the old one and remake it with that text, set perms to 644
su
mount -o remount,rw /system /system
chmod 755 /system/etc/init.d/*
chmod 755 /system/etc/install-recovery.sh
this should do the trick