aboutsummaryrefslogtreecommitdiffstats
path: root/config/anyterm/anyterm.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-10-16 23:57:15 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-10-16 23:57:15 -0400
commite7f00d1f213347d3ba2fb4452ad39ab3c9576870 (patch)
treee18c400697f05a36a5d4603621609f66c44dbae4 /config/anyterm/anyterm.inc
parent804568369995f7ca69795787279e629656ed035a (diff)
downloadpfsense-packages-e7f00d1f213347d3ba2fb4452ad39ab3c9576870.tar.gz
pfsense-packages-e7f00d1f213347d3ba2fb4452ad39ab3c9576870.tar.bz2
pfsense-packages-e7f00d1f213347d3ba2fb4452ad39ab3c9576870.zip
Launch anyterm and unlink the configuration file. Write out the file on each invocation.
Diffstat (limited to 'config/anyterm/anyterm.inc')
-rw-r--r--config/anyterm/anyterm.inc10
1 files changed, 9 insertions, 1 deletions
diff --git a/config/anyterm/anyterm.inc b/config/anyterm/anyterm.inc
index 9ee43e17..8e45907e 100644
--- a/config/anyterm/anyterm.inc
+++ b/config/anyterm/anyterm.inc
@@ -77,7 +77,14 @@ anyterm_start () {
fi
/usr/bin/env \
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
- $anytermd_command
+ /usr/local/bin/php -q -d auto_prepend_file=config.inc <<ENDOFF
+ <?php
+ require_once("globals.inc");
+ require_once("functions.inc");
+ require_once("anyterm.inc");
+ anyterm_install();
+ ?>
+ ENDOFF
fi
}
@@ -104,6 +111,7 @@ EOD;
fclose($fd);
exec("chmod a-r /usr/local/etc/anyterm.conf ; chmod ug+r /usr/local/etc/anyterm.conf ; killall anytermd");
exec($anytermd_command);
+ unlink("/usr/local/etc/anyterm.conf");
}