summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-05-30 11:37:50 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-05-30 11:39:18 -0300
commit19a12e06aad2c44d3cc407245ca5a895ad60e637 (patch)
tree9df0f710d79a6b031f85673e20e54dd64bbdf9fe /etc
parentd6daed606ed073a9ac8a4976dfe9b98d47312525 (diff)
downloadpfsense-19a12e06aad2c44d3cc407245ca5a895ad60e637.zip
pfsense-19a12e06aad2c44d3cc407245ca5a895ad60e637.tar.gz
Replae backtickes by mwexec()
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/system.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 94d71d1..ae900a7 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -1457,7 +1457,7 @@ function system_ntp_setup_gps($serialport) {
}
/* Configure the serial port for raw IO and set the speed */
- `stty -f {$serialport}.init raw speed {$gpsbaud}`
+ mwexec("stty -f {$serialport}.init raw speed {$gpsbaud}");
/* Send the following to the GPS port to initialize the GPS */
if (is_array($config['ntpd']) && is_array($config['ntpd']['gps']) && !empty($config['ntpd']['gps']['type'])) {
@@ -1468,7 +1468,7 @@ function system_ntp_setup_gps($serialport) {
/* XXX: Why not file_put_contents to the device */
@file_put_contents('/tmp/gps.init', $gps_init);
- `cat /tmp/gps.init > $serialport`;
+ mwexec("cat /tmp/gps.init > {$serialport}");
/* Add /etc/remote entry in case we need to read from the GPS with tip */
if (intval(`grep -c '^gps0' /etc/remote`) == 0) {
OpenPOWER on IntegriCloud