summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
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