Hi,
I have WRT54GL with 16MB ram and 4MB of flash + with SD/MMC mod & 1GB MMC card.
With EXT3 partition and folder ftp in it, and mounted to /sdcard folder.
I have installed vsftpd server and added 3 users to to system which I'm using to log in to FTP.
I can upload data to ftp and download it, but there is a problem.
I have 600kb free of space on flash chip.
But If I upload 10MB data to ftp I successfully upload and save file to FTP, and I also can download file from FTP - so this is working fine.
But if I look at flash I see that I have only 2kB left of space on flash. And if I delete file from FTP I again have 600kB of free space on flash.
Why is OpenWRT saving data first on flash drive and then on sd card. How to force ftp to only save files from FTP to sd card.
I have saved file to /sdcard/ftp/test folder. So it should be saved on MMC and not on Flash.
Also I have another bug with ftp, users have set startup directory /sdcard/ftp/test and they start in this dir but they can go up to / dir.
How to disable that, so they can go only lower than /sdcard/ftp/test but not higher (like /sdcard/ftp )