27c27
< # $FreeBSD: head/usr.sbin/bsdconfig/share/media/ftp.subr 252987 2013-07-07 18:51:44Z dteske $
---
> # $FreeBSD: head/usr.sbin/bsdconfig/share/media/ftp.subr 253333 2013-07-14 03:08:52Z dteske $
790c790
< # f_media_get_ftp $device $file [$probe_only]
---
> # f_media_get_ftp $device $file [$probe_type]
794,795c794,796
< # gathered from the environment. If $probe_only is present and non-NULL,
< # returns success if $file exists.
---
> # gathered from the environment. If $probe_type is present and non-NULL,
> # returns success if $file exists. If $probe_type is equal to $PROBE_SIZE,
> # prints the size of $file in bytes to standard-out.
829c830
< local dev="$1" file="$2" probe_only="$3" hosts=
---
> local dev="$1" file="$2" probe_type="$3" hosts=
831,832c832,833
< f_dprintf "f_media_get_ftp: dev=[%s] file=[%s] probe_only=%s" \
< "$dev" "$file" "$probe_only"
---
> f_dprintf "f_media_get_ftp: dev=[%s] file=[%s] probe_type=%s" \
> "$dev" "$file" "$probe_type"
902,903c903,904
< if [ "$probe_only" ]; then
< local url="ftp://$userpass$host$port/$dir/$file"
---
> if [ "$probe_type" ]; then
> local url="ftp://$userpass$host$port/$dir/$file" size
907a909
> [ "$probe_type" = "$PROBE_SIZE" ] && echo "-1"
909a912
> [ "$probe_type" = "$PROBE_SIZE" ] && echo "$size"
< # $FreeBSD: head/usr.sbin/bsdconfig/share/media/ftp.subr 252987 2013-07-07 18:51:44Z dteske $
---
> # $FreeBSD: head/usr.sbin/bsdconfig/share/media/ftp.subr 253333 2013-07-14 03:08:52Z dteske $
790c790
< # f_media_get_ftp $device $file [$probe_only]
---
> # f_media_get_ftp $device $file [$probe_type]
794,795c794,796
< # gathered from the environment. If $probe_only is present and non-NULL,
< # returns success if $file exists.
---
> # gathered from the environment. If $probe_type is present and non-NULL,
> # returns success if $file exists. If $probe_type is equal to $PROBE_SIZE,
> # prints the size of $file in bytes to standard-out.
829c830
< local dev="$1" file="$2" probe_only="$3" hosts=
---
> local dev="$1" file="$2" probe_type="$3" hosts=
831,832c832,833
< f_dprintf "f_media_get_ftp: dev=[%s] file=[%s] probe_only=%s" \
< "$dev" "$file" "$probe_only"
---
> f_dprintf "f_media_get_ftp: dev=[%s] file=[%s] probe_type=%s" \
> "$dev" "$file" "$probe_type"
902,903c903,904
< if [ "$probe_only" ]; then
< local url="ftp://$userpass$host$port/$dir/$file"
---
> if [ "$probe_type" ]; then
> local url="ftp://$userpass$host$port/$dir/$file" size
907a909
> [ "$probe_type" = "$PROBE_SIZE" ] && echo "-1"
909a912
> [ "$probe_type" = "$PROBE_SIZE" ] && echo "$size"