27c27
< # $FreeBSD: head/usr.sbin/bsdconfig/share/media/httpproxy.subr 252987 2013-07-07 18:51:44Z dteske $
---
> # $FreeBSD: head/usr.sbin/bsdconfig/share/media/httpproxy.subr 253333 2013-07-14 03:08:52Z dteske $
332c332
< # f_media_get_http_proxy $device $file [$probe_only]
---
> # f_media_get_http_proxy $device $file [$probe_type]
336c336
< # is instead gathered from the environment. If $probe_only is both present and
---
> # is instead gathered from the environment. If $probe_type is both present and
339c339,341
< # otherwise failure).
---
> # otherwise failure). If $probe_type is equal to $PROBE_SIZE, prints the
> # content-length in bytes from the response (or -1 if not found) to standard-
> # out.
361c363
< local dev="$1" file="$2" probe_only="$3" hosts=
---
> local dev="$1" file="$2" probe_type="$3" hosts=
363,364c365,366
< f_dprintf "f_media_get_http_proxy: dev=[%s] file=[%s] probe_only=%s" \
< "$dev" "$file" "$probe_only"
---
> f_dprintf "f_media_get_http_proxy: dev=[%s] file=[%s] probe_type=%s" \
> "$dev" "$file" "$probe_type"
411c413
< rv=0
---
> rv=0 length=-1
418a421,427
> "Content-Length: "*)
> length="${LINE%
> }"
> length="${length#Content-Length: }"
> f_dprintf "received content-length: %s" \
> "$length"
> ;;
431c440
< if [ ! "$probe_only" ]; then
---
> if [ ! "$probe_type" ]; then
432a442,444
> elif [ "$probe_type" = "$PROBE_SIZE" ]; then
> f_isinteger "$length" || length=-1
> echo "$length"
438c450
< [ "$probe_only" ] && return $FAILURE
---
> [ "$probe_type" ] && return $FAILURE
< # $FreeBSD: head/usr.sbin/bsdconfig/share/media/httpproxy.subr 252987 2013-07-07 18:51:44Z dteske $
---
> # $FreeBSD: head/usr.sbin/bsdconfig/share/media/httpproxy.subr 253333 2013-07-14 03:08:52Z dteske $
332c332
< # f_media_get_http_proxy $device $file [$probe_only]
---
> # f_media_get_http_proxy $device $file [$probe_type]
336c336
< # is instead gathered from the environment. If $probe_only is both present and
---
> # is instead gathered from the environment. If $probe_type is both present and
339c339,341
< # otherwise failure).
---
> # otherwise failure). If $probe_type is equal to $PROBE_SIZE, prints the
> # content-length in bytes from the response (or -1 if not found) to standard-
> # out.
361c363
< local dev="$1" file="$2" probe_only="$3" hosts=
---
> local dev="$1" file="$2" probe_type="$3" hosts=
363,364c365,366
< f_dprintf "f_media_get_http_proxy: dev=[%s] file=[%s] probe_only=%s" \
< "$dev" "$file" "$probe_only"
---
> f_dprintf "f_media_get_http_proxy: dev=[%s] file=[%s] probe_type=%s" \
> "$dev" "$file" "$probe_type"
411c413
< rv=0
---
> rv=0 length=-1
418a421,427
> "Content-Length: "*)
> length="${LINE%
> }"
> length="${length#Content-Length: }"
> f_dprintf "received content-length: %s" \
> "$length"
> ;;
431c440
< if [ ! "$probe_only" ]; then
---
> if [ ! "$probe_type" ]; then
432a442,444
> elif [ "$probe_type" = "$PROBE_SIZE" ]; then
> f_isinteger "$length" || length=-1
> echo "$length"
438c450
< [ "$probe_only" ] && return $FAILURE
---
> [ "$probe_type" ] && return $FAILURE