aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tftp/tftp_files.tmp
diff options
context:
space:
mode:
authorMark Crane <mcrane@pfsense.org>2008-12-27 03:18:56 +0000
committerMark Crane <mcrane@pfsense.org>2008-12-27 03:18:56 +0000
commit378fb592cd5e5870983f55f14585d91a9e838941 (patch)
tree15e1376a53a7ef3d8d59f1d7e031ab93ec16fba7 /packages/tftp/tftp_files.tmp
parent975ceaa0bc10e81232128f94d514946f42bee36a (diff)
downloadpfsense-packages-378fb592cd5e5870983f55f14585d91a9e838941.tar.gz
pfsense-packages-378fb592cd5e5870983f55f14585d91a9e838941.tar.bz2
pfsense-packages-378fb592cd5e5870983f55f14585d91a9e838941.zip
TFTP package fix restore
Diffstat (limited to 'packages/tftp/tftp_files.tmp')
-rw-r--r--packages/tftp/tftp_files.tmp6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/tftp/tftp_files.tmp b/packages/tftp/tftp_files.tmp
index fa7a521e..1ea1a346 100644
--- a/packages/tftp/tftp_files.tmp
+++ b/packages/tftp/tftp_files.tmp
@@ -53,16 +53,16 @@ if (($_GET['a'] == "download") && file_exists("/tftpboot/".$filename)) {
exit;
}
+
if ($_GET['a'] == "other") {
if ($_GET['t'] == "restore") {
$tmp = '/tmp/';
$filename = 'tftp.bak.tgz';
-
+
//extract a specific directory to /tftpboot
if (file_exists('/tmp/'.$filename)) {
//echo "The file $filename exists";
- system('cd /tftpboot; tar xvpfz /tmp/'.$filename.' tftpboot/');
-
+ system('cd /; tar xvpfz /tmp/'.$filename);
header( 'Location: tftp_files.php?savemsg=Backup+has+been+restored.' ) ;
}
else {