summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-10-04 10:28:32 -0400
committerjim-p <jimp@pfsense.org>2012-10-04 10:29:00 -0400
commit6f663992845110fae5777a6a6b2547e567563a8c (patch)
tree433149911e64436f036173a58a18334235ac3058
parent33ba41314b5e78c16562365826aef9118f370e46 (diff)
downloadpfsense-6f663992845110fae5777a6a6b2547e567563a8c.zip
pfsense-6f663992845110fae5777a6a6b2547e567563a8c.tar.gz
Eliminate system calls here, use PHP instead.
-rwxr-xr-xusr/local/www/system_firmware.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php
index fff77cd..033266a 100755
--- a/usr/local/www/system_firmware.php
+++ b/usr/local/www/system_firmware.php
@@ -124,9 +124,9 @@ if($_POST['backupbeforeupgrade'])
if($_POST['kerneltype'] && in_array($_POST['kerneltype'], array_keys($kerneltypes))) {
if($_POST['kerneltype'] == "single")
- system("touch /boot/kernel/pfsense_kernel.txt");
+ touch("/boot/kernel/pfsense_kernel.txt");
else
- system("echo {$_POST['kerneltype']} > /boot/kernel/pfsense_kernel.txt");
+ file_put_contents("/boot/kernel/pfsense_kernel.txt", $_POST['kerneltype']);
}
/* Handle manual upgrade */
OpenPOWER on IntegriCloud