197403Sobrien#!/bin/sh
297403Sobrien#-
3169691Skan# Copyright (c) 2010 iXSystems, Inc.  All rights reserved.
497403Sobrien#
597403Sobrien# Redistribution and use in source and binary forms, with or without
697403Sobrien# modification, are permitted provided that the following conditions
797403Sobrien# are met:
897403Sobrien# 1. Redistributions of source code must retain the above copyright
997403Sobrien#    notice, this list of conditions and the following disclaimer.
1097403Sobrien# 2. Redistributions in binary form must reproduce the above copyright
1197403Sobrien#    notice, this list of conditions and the following disclaimer in the
1297403Sobrien#    documentation and/or other materials provided with the distribution.
1397403Sobrien#
1497403Sobrien# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1597403Sobrien# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1697403Sobrien# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1797403Sobrien# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18169691Skan# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1997403Sobrien# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2097403Sobrien# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2197403Sobrien# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2297403Sobrien# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2397403Sobrien# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2497403Sobrien# SUCH DAMAGE.
2597403Sobrien#
2697403Sobrien# $FreeBSD$
2797403Sobrien
2897403Sobrien. ${PROGDIR}/backend/functions.sh
2997403Sobrien. ${PROGDIR}/backend/functions-ftp.sh
3097403Sobrien
3197403SobrienMIRROR="${1}"
3297403Sobrien
3397403Sobrienif [ -z "${MIRROR}" ]
3497403Sobrienthen
3597403Sobrien  echo "Error: No mirror specified!"
3697403Sobrien  exit 1
37117397Skanfi
3897403Sobrien
39169691Skanset_ftp_mirror "${MIRROR}"
40169691Skanexit 0
4197403Sobrien