na that one didn't work at all i tried every way using the run_program command to do it and it didn't even make the folder all it did was bootloop the phone.
mount(yaffs2, MTD, userdata, data);
set_perm(1000, 1000, 0775, /data/system);
set_perm(1000, 1000, 0777, /data/system/theme);
equiliym posted this on the MIUI GB for Galaxy Mini so thank him for this bit
Retired Mobile: HTC Wildfire (Buzz) Hboot: 1.02.000 (Superversion)
SecureFlag: On (Was Off'd with XTC Clip)
Rom: None Blanked for Testing Roms!!!!!!!!!
Boot Manager: Full Version Paid and Worth It!
New Mobile: HTC Desire HD
SecureFlag: Off Via XTC Clip (I love my clip its so nice!)
Rom: Pacman Rom