summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_firmware.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-06-30 18:15:14 +0000
committerErmal Luçi <eri@pfsense.org>2009-06-30 18:16:09 +0000
commit0d64af597505a0e9c21d48669aafc8e1448b102b (patch)
treedc7101c26d46efc532af66aaaadf7825bd8e8bf2 /usr/local/www/system_firmware.php
parentd44d94c5c51c7bd7c6de810abfe0c3266cf947b1 (diff)
downloadpfsense-0d64af597505a0e9c21d48669aafc8e1448b102b.zip
pfsense-0d64af597505a0e9c21d48669aafc8e1448b102b.tar.gz
Clear guiconfig from all sort junk functions and put them on the specific pages where they are needed.
Remove some sort functions not used.
Diffstat (limited to 'usr/local/www/system_firmware.php')
-rwxr-xr-xusr/local/www/system_firmware.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php
index b133334..c78a128 100755
--- a/usr/local/www/system_firmware.php
+++ b/usr/local/www/system_firmware.php
@@ -89,11 +89,11 @@ if ($_POST && !is_subsystem_dirty('firmwarelock')) {
}
if ($mode) {
if ($mode == "enable") {
- exec_rc_script("/etc/rc.firmware enable");
+ mwexec("/etc/rc.firmware enable");
conf_mount_rw();
mark_subsystem_dirty('firmware');
} else if ($mode == "disable") {
- exec_rc_script("/etc/rc.firmware disable");
+ mwexec("/etc/rc.firmware disable");
conf_mount_ro();
clear_subsystem_dirty('firmware');
} else if ($mode == "upgrade") {
@@ -104,7 +104,7 @@ if ($_POST && !is_subsystem_dirty('firmwarelock')) {
else if (!file_exists($_FILES['ulfile']['tmp_name'])) {
/* probably out of memory for the MFS */
$input_errors[] = "Image upload failed (out of memory?)";
- exec_rc_script("/etc/rc.firmware disable");
+ mwexec("/etc/rc.firmware disable");
clear_subsystem_dirty('firmware');
} else {
/* move the image so PHP won't delete it */
OpenPOWER on IntegriCloud