diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-29 02:42:25 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-29 02:42:25 +0000 |
commit | 74285e13bd7465106c4eecf451c77dd65adfa7bb (patch) | |
tree | 9a75a32150063a9e32a898f4e02e1b9fdf9c136b /usr/local/www/exec.php | |
parent | fbe94068a84cb0c9f5ab1f63b5768fcc37df6f74 (diff) | |
download | pfsense-74285e13bd7465106c4eecf451c77dd65adfa7bb.zip pfsense-74285e13bd7465106c4eecf451c77dd65adfa7bb.tar.gz |
Be a nice script for ro environments by mounting the flash rw and then ro before and after the save.
Diffstat (limited to 'usr/local/www/exec.php')
-rwxr-xr-x | usr/local/www/exec.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/local/www/exec.php b/usr/local/www/exec.php index de21437..925cd84 100755 --- a/usr/local/www/exec.php +++ b/usr/local/www/exec.php @@ -26,6 +26,8 @@ if (($_POST['submit'] == "Download") && file_exists($_POST['dlPath'])) { require("guiconfig.inc"); +conf_mount_rw(); + ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> @@ -248,3 +250,9 @@ document.forms[0].txtCommand.focus(); </script> </body> </html> + +<?php + +conf_mount_ro(); + +?>
\ No newline at end of file |