diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-10-16 23:43:14 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-10-16 23:43:14 -0400 |
commit | 804568369995f7ca69795787279e629656ed035a (patch) | |
tree | c3e99ced40ed7368472b896a50d12ab70c961801 /config/anyterm | |
parent | cdf02b4ce64666ea13106095e69b9018924f82d9 (diff) | |
download | pfsense-packages-804568369995f7ca69795787279e629656ed035a.tar.gz pfsense-packages-804568369995f7ca69795787279e629656ed035a.tar.bz2 pfsense-packages-804568369995f7ca69795787279e629656ed035a.zip |
Move to /usr/local/etc/ to survive reboots on nano
Diffstat (limited to 'config/anyterm')
-rw-r--r-- | config/anyterm/anyterm.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/anyterm/anyterm.inc b/config/anyterm/anyterm.inc index 7f2f95f3..9ee43e17 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 /var/etc/anyterm.conf ]; then + if [ -f /usr/local/etc/anyterm.conf ]; then if [ `ps awux | grep -v grep | grep anytermd | wc -l` -gt 0 ]; then killall anytermd fi @@ -98,11 +98,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("/var/etc/anyterm.conf", "w"); + $fd = fopen("/usr/local/etc/anyterm.conf", "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 /var/etc/anyterm.conf ; chmod ug+r /var/etc/anyterm.conf ; killall anytermd"); + exec("chmod a-r /usr/local/etc/anyterm.conf ; chmod ug+r /usr/local/etc/anyterm.conf ; killall anytermd"); exec($anytermd_command); } |