Project

General

Profile

« Previous | Next » 

Revision 1867338d

Added by Ohad Levy over 13 years ago

  • ID 1867338d7948f401a6e738d342d89e2118cca4da

Fixes #513 - move tftp file fatching to run as in the background

View differences:

lib/proxy/tftp.rb
FileUtils.rm_f file
logger.debug "TFTP entry for #{mac} removed successfully"
else
logger.warn "Skipping a request to delete a file which doesn't exists"
logger.info "TFTP: Skipping a request to delete a file which doesn't exists"
end
rescue StandardError => e
logger.warn "TFTP removing entry failed: #{e}"
......
#as the dst might contain another sub directory
FileUtils.mkdir_p destination.parent
cmd = "wget --no-check-certificate -c -q #{src} -O \"#{destination}\""
cmd = "wget --no-check-certificate -b -c -q #{src} -O \"#{destination}\" &"
logger.debug "trying to execute #{cmd}"
`#{cmd}`
$? == 0

Also available in: Unified diff