mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Be a nice script for ro environments by mounting the flash rw and then ro before and after the save.
This commit is contained in:
parent
fbe94068a8
commit
74285e13bd
@ -30,6 +30,8 @@
|
||||
|
||||
require("guiconfig.inc");
|
||||
|
||||
conf_mount_rw();
|
||||
|
||||
if (($_POST['submit'] == "Load") && file_exists($_POST['savetopath'])) {
|
||||
$fd = fopen($_POST['savetopath'], "r");
|
||||
$content = fread($fd, filesize($_POST['savetopath']));
|
||||
@ -166,3 +168,9 @@ function sf() { document.forms[0].savetopath.focus(); }
|
||||
<script language="Javascript">
|
||||
sf();
|
||||
</script>
|
||||
|
||||
<?php
|
||||
|
||||
conf_mount_ro();
|
||||
|
||||
?>
|
||||
@ -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();
|
||||
|
||||
?>
|
||||
Loading…
Reference in New Issue
Block a user