Hi,I recently added a little hack to m0n0wall so I could upload and store locally a picture image in
M0n0wall.
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
{$g['cf_path']}");}
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 |