aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-10-17 00:14:07 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-10-17 00:14:07 -0400
commitc50d96c03aed8bbc2df07205b3edfe6ca6fe2404 (patch)
treee186b44c092a99d10dcb7c07ad26f2fdbe1cfd4f /config
parentf52a68e5aa010ee9e603619280c8938d66cc7781 (diff)
downloadpfsense-packages-c50d96c03aed8bbc2df07205b3edfe6ca6fe2404.tar.gz
pfsense-packages-c50d96c03aed8bbc2df07205b3edfe6ca6fe2404.tar.bz2
pfsense-packages-c50d96c03aed8bbc2df07205b3edfe6ca6fe2404.zip
Move back to /var/etc .. the binaries are hard coded to this location and we also now create this file from scratch each startup
Diffstat (limited to 'config')
-rw-r--r--config/anyterm/anyterm.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/anyterm/anyterm.inc b/config/anyterm/anyterm.inc
index ff3a8b5a..2caee66a 100644
--- a/config/anyterm/anyterm.inc
+++ b/config/anyterm/anyterm.inc
@@ -71,7 +71,7 @@ stop_postcmd="anyterm_stop"
load_rc_config \$name
anyterm_start () {
- if [ -f /usr/local/etc/anyterm.conf ]; then
+ if [ -f /var/etc/anyterm.conff ]; then
if [ `ps awux | grep -v grep | grep anytermd | wc -l` -gt 0 ]; then
killall anytermd
fi
@@ -106,11 +106,11 @@ EOD;
exec("chmod a+rx /usr/local/etc/rc.d/anyterm.sh");
// Write out Anyterm configuration file (username and password for auth)
- $fd = fopen("/usr/local/etc/anyterm.conf", "w");
+ $fd = fopen("/var/etc/anyterm.conff", "w");
fwrite($fd, $config['installedpackages']['anyterm']['config'][0]['username'] . "\n");
fwrite($fd, $config['installedpackages']['anyterm']['config'][0]['password'] . "\n");
fclose($fd);
- exec("chmod a-r /usr/local/etc/anyterm.conf ; chmod ug+r /usr/local/etc/anyterm.conf ; killall anytermd");
+ exec("chmod a-r /var/etc/anyterm.conff ; chmod ug+r /var/etc/anyterm.conff ; killall anytermd");
exec($anytermd_command);
}