summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-20 05:17:28 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-20 05:17:28 +0000
commit34959279a1f8c2106a5ddfe8a5bf83908c050903 (patch)
treee7c9d180a4de1388037d69d2aaefae6d131d252b /etc
parent63d671d9560f174011b95a0060e7cb8a04f4ef8f (diff)
downloadpfsense-34959279a1f8c2106a5ddfe8a5bf83908c050903.zip
pfsense-34959279a1f8c2106a5ddfe8a5bf83908c050903.tar.gz
Use fwrite to write out ath command
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index f6a3f73..7a30022 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -660,7 +660,9 @@ EOD;
/* set ack timers according to users preference (if he/she has any) */
if($distance) {
mwexec("/sbin/athctrl.sh -i {$if} -d {$distance}");
- mwexec("echo /sbin/athctrl.sh -i {$if} -d {$distance} >/tmp/athctrl.txt");
+ $fd = fopen("/tmp/athctrl.txt", "w");
+ fwrite($fd, "/sbin/athctrl.sh -i {$if} -d {$distance}");
+ fclose($fd);
}
if(isset($wlcfg['useolsr']))
OpenPOWER on IntegriCloud