[myTouch 3G, Magic Android Development] motivecc:
i thought that i would repost this in the magic forum as its obviously more relevant here, and i didn't want to slightly thread jack in the dream forum...

i'm currently using cyanogen 4.0.1 and would like to test out some compcache configuration settings to see how they work out, but i can't seem to get them to work...

i DO NOT have apps2sd setup, therefor the a2sd script that is included with the stock 4.0.1 cyanogen ROM seems to not work with userinit.sh and user.conf because the script is looking for these files in the root of the ext partition, which obviously i do not have...

i've attempted to edit the a2sd script to look for the two files in the root of my sdcard instead, by editing the following

# call a userinit.sh script if it's present on the sdcard
# otherwise just enable compcache with no backing swap
if [ -e /sdcard/userinit.sh ];
then
echo "--- Executing userinit.sh"
busybox chmod +x /sdcard/userinit.sh
/system/bin/sh /sdcard/userinit.sh;
else
modprobe ramzswap;
/system/bin/rzscontrol /dev/block/ramzswap0 --init
swapon /dev/block/ramzswap0
fi

the stock a2sd script was using the if variable

if [ -e /system/sd/userinit.sh ];

i also edited the userinit.sh file to look for the user.conf file in the /sdcard rather than /system/sd... i have pretty much no programming background, but from all this syntax that i changed, i didn't really find fault in it since it was just changing file directories due to the nature of the /system/sd not being available in my case...

the error that i get from compcache is as follows when i run the command

#sh /sdcard/userinit.sh -s

=== CompCache status ===
CompCache version 0.6+
Compcache enabled
CompCache: DiskSize 24452(system) 32768(user)
!!! Unable to set compcache cc_swappiness to user specific "28"
Current system value is "60"

=== CompCache status output ===
DiskSize: 24452 kB

## the rest of the output i assumed would not be needed for my question

if anybody could help me with this, i would appreciate it... i'm fairly certain the solution to my problem is simple, i just can't figure it out on my own as i'm learning everything from scratch... and this is on a mytouch 3G, which i also assume may have some relevance in the issue...

the config files that i am using are 1.4.1, and all i did as you can see from the output is attempt to change the disksize of compcache to 32, and swappiness to 28 using notepad++... i've also tried using it in administrator mode and that yielded the same results

UPDATE: i am being told the reason why this method isn't working is because the /sdcard is not mounted when the a2sd script runs, therefor rendering my changes to the code useless...

i personally believe that since the mytouch/magic have a higher RAM amount, that compcache settings should be configured accordingly, and they are not changed from the g1 settings when loading cyanogen's ROM by default... utilizing userinit.sh and user.conf is not possible without apps2sd, and i would like to experiement with compcache settings and backing swap without having an ext partition and relying on my sd card for processes that would indubitably be faster on the onboard RAM...

so the question is, how would i configure these settings? by editing the a2sd script to grab the userinit.sh and user.conf files from a different mounted directory, or editing cyanogen's ROM and changing the default settings to disksize, swappiness, and backing swap and then resigning the package?