functions-extractimage.sh (211730) | functions-extractimage.sh (212337) |
---|---|
1#!/bin/sh 2#- 3# Copyright (c) 2010 iXsystems, Inc. All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24# SUCH DAMAGE. 25# | 1#!/bin/sh 2#- 3# Copyright (c) 2010 iXsystems, Inc. All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24# SUCH DAMAGE. 25# |
26# $FreeBSD: head/usr.sbin/pc-sysinstall/backend/functions-extractimage.sh 211730 2010-08-24 06:11:46Z imp $ | 26# $FreeBSD: head/usr.sbin/pc-sysinstall/backend/functions-extractimage.sh 212337 2010-09-08 20:10:24Z imp $ |
27 28# Functions which perform the extraction / installation of system to disk 29 30. ${BACKEND}/functions-mountoptical.sh 31 32# Performs the extraction of data to disk from a uzip or tar archive 33start_extract_uzip_tar() 34{ --- 337 unchanged lines hidden (view full) --- 372 start_extract_split 373 374 else 375 INSFILE="${CDMNT}/${INSFILE}" ; export INSFILE 376 start_extract_uzip_tar 377 fi 378 ;; 379 | 27 28# Functions which perform the extraction / installation of system to disk 29 30. ${BACKEND}/functions-mountoptical.sh 31 32# Performs the extraction of data to disk from a uzip or tar archive 33start_extract_uzip_tar() 34{ --- 337 unchanged lines hidden (view full) --- 372 start_extract_split 373 374 else 375 INSFILE="${CDMNT}/${INSFILE}" ; export INSFILE 376 start_extract_uzip_tar 377 fi 378 ;; 379 |
380 ftp|sftp) | 380 ftp) |
381 if [ "$PACKAGETYPE" = "split" ] 382 then 383 fetch_split_files 384 385 INSDIR="${INSFILE}" ; export INSDIR 386 start_extract_split 387 else 388 fetch_install_file 389 start_extract_uzip_tar 390 fi 391 ;; 392 | 381 if [ "$PACKAGETYPE" = "split" ] 382 then 383 fetch_split_files 384 385 INSDIR="${INSFILE}" ; export INSDIR 386 start_extract_split 387 else 388 fetch_install_file 389 start_extract_uzip_tar 390 fi 391 ;; 392 |
393 rsync) start_rsync_copy ;; 394 img) 395 ;; | 393 sftp) ;; 394 395 rsync) start_rsync_copy ;; |
396 *) exit_err "ERROR: Unknown install medium" ;; 397 esac 398 399}; | 396 *) exit_err "ERROR: Unknown install medium" ;; 397 esac 398 399}; |