1212350Simp#!/bin/sh 2212350Simp#- 3212350Simp# Copyright (c) 2010 iXsystems, Inc. All rights reserved. 4212350Simp# 5212350Simp# Redistribution and use in source and binary forms, with or without 6212350Simp# modification, are permitted provided that the following conditions 7212350Simp# are met: 8212350Simp# 1. Redistributions of source code must retain the above copyright 9212350Simp# notice, this list of conditions and the following disclaimer. 10212350Simp# 2. Redistributions in binary form must reproduce the above copyright 11212350Simp# notice, this list of conditions and the following disclaimer in the 12212350Simp# documentation and/or other materials provided with the distribution. 13212350Simp# 14212350Simp# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15212350Simp# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16212350Simp# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17212350Simp# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18212350Simp# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19212350Simp# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20212350Simp# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21212350Simp# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22212350Simp# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23212350Simp# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24212350Simp# SUCH DAMAGE. 25212350Simp# 26212350Simp# $FreeBSD$ 27212350Simp 28212350Simp# Source our functions scripts 29212350Simp. ${BACKEND}/functions.sh 30212350Simp 31212350SimpIMAGE_FILE="${1}" 32212350SimpDEVICE_FILE="${2}" 33212350Simp 34212350Simpwrite_image "${IMAGE_FILE}" "${DEVICE_FILE}" 35