Skip to content

Commit

Permalink
Adding support for using tftp in fetch= parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenshiau authored and daniel-baumann committed Aug 8, 2008
1 parent 997d836 commit 5a46a4f
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions scripts/live
Expand Up @@ -722,9 +722,20 @@ do_httpmount ()
squashfs|tgz|tar)
if [ "${webfile}" = "FETCH" ]
then
[ "${quiet}" != "y" ] &&
log_begin_msg "Trying wget ${url} -O ${dest}/$(basename ${url})"
wget "${url}" -O "${dest}/$(basename ${url})"
case "$url" in
tftp*)
ip="$(dirname $url | sed -e 's|tftp://||g')"
[ "${quiet}" != "y" ] &&
log_begin_msg "Trying tftp -g -b 10240 -r $(basename ${url}) -l ${dest}/$(basename ${url}) $ip"
tftp -g -b 10240 -r $(basename ${url}) -l ${dest}/$(basename ${url}) $ip
;;

*)
[ "${quiet}" != "y" ] &&
log_begin_msg "Trying wget ${url} -O ${dest}/$(basename ${url})"
wget "${url}" -O "${dest}/$(basename ${url})"
;;
esac
else
[ "${quiet}" != "y" ] &&
log_begin_msg "Trying to mount ${url} on ${dest}/$(basename ${url})"
Expand Down

0 comments on commit 5a46a4f

Please sign in to comment.