Commit 4b334e45 authored by Bernhard Landauer's avatar Bernhard Landauer

[deployiso] rm default bw-limit

[deployiso] limit isn't empty but zero

Revert "[deployiso] limit isn't empty but zero"

This reverts commit 8bb98a2b650f5d938bc3a039523f95e6d55ff072.

correction
parent f23a135b
......@@ -37,7 +37,7 @@ display_settings(){
msg2 "is_build_list: %s" "${is_build_list}"
msg "OPTIONS:"
msg2 "limit: %s kB/s" "${limit}"
[[ -z ${limit} ]] && msg2 "bandwidth limit: no" || msg2 "bandwidth limit: %s kB/s" "${limit}"
msg2 "dist_release: %s" "${dist_release}"
msg "ARGS:"
......@@ -94,7 +94,7 @@ opts='dhl:p:qtuv'
while getopts "${opts}" arg; do
case "${arg}" in
d) hidden=true ;;
l) limit="$OPTARG" ;;
l) limit="$OPTARG"; rsync_args+=(--bwlimit=${limit}) ;;
p) build_list_iso="$OPTARG" ;;
q) pretend=true; rsync_args+=(-n) ;;
t) torrent=true ;;
......@@ -111,8 +111,6 @@ timer_start=$(get_timer)
eval_build_list "${list_dir_iso}" "${build_list_iso}"
rsync_args+=(--bwlimit=${limit})
${pretend} && display_settings && exit 1
run sync_dir "${build_list_iso}"
......@@ -326,8 +326,6 @@ init_deployiso(){
[[ -z ${account} ]] && account="[SetUser]"
[[ -z ${limit} ]] && limit=100
[[ -z ${tracker_url} ]] && tracker_url='udp://mirror.strits.dk:6969'
[[ -z ${piece_size} ]] && piece_size=21
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment