[ previous ] [ next ] [ threads ]
 From:  "MAALVAREZ at telefonica dot net" <MAALVAREZ at telefonica dot net>
 To:  m0n0wall at lists dot m0n0 dot ch
 Subject:  Writing a file CF Card
 Date:  Thu, 14 Jul 2005 12:44:48 +0200 (CEST)
Hi,I recently added a little hack to m0n0wall so I could upload and store locally a picture image in
Obviously it had to be written into the CF card but I can?t make it work.This is the code:
/* mount flash_card to read and write */function cf_mount_rw() {    global $g;
    mwexec("/sbin/umount -f {$g['cf_path']}");    mwexec("/sbin/mount -w -o noatime
function cf_mount_ro() {    global $g;        mwexec("/sbin/umount -f {$g['cf_path']}");   
mwexec("/sbin/mount -r {$g['cf_path']}");}
function logo_install($logofile,$path) {    global $g;
    cf_mount_rw();       copy($logofile,"{$g['www_path']}/$path");       cf_mount_ro();
    return 0;}  
Is there anything wrong? everytime I reboot m0n0 in my wrap box the logo file dissapears..
Thank you!  File input Error for file: /internet/programas/tps/webapps/cp/WEB-INF/etc/blank.html