diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-10-16 23:57:15 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-10-16 23:57:15 -0400 |
commit | e7f00d1f213347d3ba2fb4452ad39ab3c9576870 (patch) | |
tree | e18c400697f05a36a5d4603621609f66c44dbae4 /config | |
parent | 804568369995f7ca69795787279e629656ed035a (diff) | |
download | pfsense-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')
-rw-r--r-- | config/anyterm/anyterm.inc | 10 |
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"); } |