summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_firmware.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-09-02 00:20:47 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-09-02 00:20:47 +0000
commitb6f6723586356a5bdf5cd580592cccc5ee988cc5 (patch)
tree3265e959f431d6b3603a68b152814af989fca4a1 /usr/local/www/system_firmware.php
parent2e44fb05e1d3902328d676d83f4f4f5f17c648f3 (diff)
downloadpfsense-b6f6723586356a5bdf5cd580592cccc5ee988cc5.zip
pfsense-b6f6723586356a5bdf5cd580592cccc5ee988cc5.tar.gz
Mount RW for uploads
Diffstat (limited to 'usr/local/www/system_firmware.php')
-rwxr-xr-xusr/local/www/system_firmware.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php
index 33f3593..cd0762f 100755
--- a/usr/local/www/system_firmware.php
+++ b/usr/local/www/system_firmware.php
@@ -68,9 +68,11 @@ if ($_POST && !file_exists($d_firmwarelock_path)) {
if ($mode) {
if ($mode == "enable") {
exec_rc_script("/etc/rc.firmware enable");
+ conf_mount_rw();
touch($d_fwupenabled_path);
} else if ($mode == "disable") {
exec_rc_script("/etc/rc.firmware disable");
+ conf_mount_ro();
if (file_exists($d_fwupenabled_path))
unlink($d_fwupenabled_path);
} else if ($mode == "upgrade") {
OpenPOWER on IntegriCloud