[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
This commit is contained in:
Bernhard Landauer 2018-04-15 15:08:56 +02:00
parent f23a135b6c
commit 4b334e4527
2 changed files with 2 additions and 6 deletions

View file

@ -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}"

View file

@ -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