Alex,
Thanks.
Attached please find my patch.
Hope this helps.

Regards,
Steven.

Alex Owen wrote:
> lenny busybox includes tftp... so should be easy to add.. if it is not
> already there
>
> $ busybox --help | grep tftp
>       tar, tee, telnet, test, tftp, time, top, touch, tr, traceroute,
>
> Alex Owen
>
>
> 2008/7/31 Steven Shiau <[EMAIL PROTECTED]>:
>   
>> Please forgive me if I am wrong.
>> The fetch parameter in live-initramfs now supports http or ftp IIRC, so
>> is that possible in the future it can support tftp ?
>> By adding this, with DHCPd and tftpd services in the server, we can boot
>> Debin live via PXE. Another service like http or ftp is not required in
>> the server.
>>
>> Thanks in advance.
>>
>> --
>> Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
>> National Center for High-performance Computing, Taiwan.
>> http://www.nchc.org.tw
>> Public Key Server PGP Key ID: 1024D/9762755A
>> Fingerprint: A2A1 08B7 C22C 3D06 34DB  F4BC 08B3 E3D7 9762 755A
>>
>> _______________________________________________
>> debian-live-devel mailing list
>> [email protected]
>> http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel
>>
>>     


-- 
Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan. http://www.nchc.org.tw
Public Key Server PGP Key ID: 1024D/9762755A
Fingerprint: A2A1 08B7 C22C 3D06 34DB  F4BC 08B3 E3D7 9762 755A

--- live-initramfs-1.136.3.orig/scripts/live
+++ live-initramfs-1.136.3/scripts/live
@@ -720,8 +720,17 @@
 					if [ "${webfile}" = "FETCH" ]
 					then
 						[ "${quiet}" != "y" ] &&
+						case "$url" in
+						  tftp*)
+						        ip="$(dirname $url | sed -e "s|tftp://||g")"
+							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
+							;;
+						  *)
 							log_begin_msg "Trying wget ${url} -O ${dest}/$(basename ${url})"
-						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})"
_______________________________________________
debian-live-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel

Reply via email to