]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
url-lib: extend to enable TFTP support
authorStig Telfer <stelfer@cray.com>
Mon, 16 Dec 2013 15:17:47 +0000 (15:17 +0000)
committerHarald Hoyer <harald@redhat.com>
Tue, 28 Jan 2014 14:43:40 +0000 (15:43 +0100)
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

modules.d/45url-lib/url-lib.sh

index 12df9b4c8d351dc2eefe57377bc2c8f87bf4b6eb..c9d143a28fce01a8c730ef0ee9c500ded8793566 100755 (executable)
@@ -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