[PATCH] url-lib: extend to enable TFTP support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 12df9b4..c9d143a 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
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux