aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tftp/tftp.inc
diff options
context:
space:
mode:
authorMark Crane <mcrane@pfsense.org>2008-12-27 03:33:12 +0000
committerMark Crane <mcrane@pfsense.org>2008-12-27 03:33:12 +0000
commit65f30611e3273570ac531e75a03c8cb35eebd55e (patch)
tree53c75eb984e758fbffe654cb6b9468f0aaadbdbb /packages/tftp/tftp.inc
parentec60b9654d8ff1c67129a1fa3cf0d4fbb1bfc239 (diff)
downloadpfsense-packages-65f30611e3273570ac531e75a03c8cb35eebd55e.tar.gz
pfsense-packages-65f30611e3273570ac531e75a03c8cb35eebd55e.tar.bz2
pfsense-packages-65f30611e3273570ac531e75a03c8cb35eebd55e.zip
TFTP adjust restore on install
Diffstat (limited to 'packages/tftp/tftp.inc')
-rw-r--r--packages/tftp/tftp.inc13
1 files changed, 2 insertions, 11 deletions
diff --git a/packages/tftp/tftp.inc b/packages/tftp/tftp.inc
index 26ec2be3..531c3f29 100644
--- a/packages/tftp/tftp.inc
+++ b/packages/tftp/tftp.inc
@@ -114,15 +114,8 @@ function php_install_command()
exec("mkdir /usr/local/www/tftp");
}
- //extract a specific directory to /tftpboot
- if (file_exists('/tmp/'.$filename)) {
- //echo "The file $filename exists";
- system('cd /; tar xvpfz /tmp/tftp.bak.tgz');
- unset($filename);
- }
-
- //rename PHP files from .tmp to .php
+ //rename PHP files from .tmp to .php
exec("cp /tmp/tftp_files.tmp /usr/local/www/tftp/tftp_files.php");
unlink_if_exists("/tmp/tftp_files.tmp");
@@ -145,9 +138,7 @@ function php_install_command()
//extract a specific directory to /usr/local/freeswitch
if (file_exists('/tmp/'.$filename)) {
- //echo "The file $filename exists";
- system('cd /tftpboot; tar xvpfz /tmp/'.$filename.' tftpboot/');
-
+ system('cd /; tar xvpfz /tmp/tftp.bak.tgz');
unset($filename);
}