From: Stig Telfer Date: Mon, 16 Dec 2013 15:17:47 +0000 (+0000) Subject: url-lib: extend to enable TFTP support X-Git-Tag: 036~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f28dfb2e4b6b3821fb67d073c30ec6faa0e5e16;p=thirdparty%2Fdracut.git url-lib: extend to enable TFTP support Libcurl has wider capabilities than those assigned to it by Dracut. In this patch to url-lib I've added registration for TFTP URLs, which I've found to be useful. Enjoy, Stig Telfer --- diff --git a/modules.d/45url-lib/url-lib.sh b/modules.d/45url-lib/url-lib.sh index 12df9b4c8..c9d143a28 100755 --- a/modules.d/45url-lib/url-lib.sh +++ b/modules.d/45url-lib/url-lib.sh @@ -76,7 +76,7 @@ curl_fetch_url() { fi if [ -z "$2" ]; then echo "$outloc" ; fi } -add_url_handler curl_fetch_url http https ftp +add_url_handler curl_fetch_url http https ftp tftp set_http_header() { echo "header = \"$1: $2\"" >> $CURL_HOME/.curlrc