diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-09-28 13:38:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-09-28 13:38:40 +0000 |
commit | 85f240539c462832ad5363a277a61928b0d90a2a (patch) | |
tree | 9c4c2dd03d534462a11930d2eefdc812fc8500e9 /distrib/miniroot | |
parent | 085b065adece3b8aeb6982cd38e3daa2ac9885f0 (diff) |
use ftp file:/ URL support for filebased (cdrom, nfs, etc) installs
Diffstat (limited to 'distrib/miniroot')
-rw-r--r-- | distrib/miniroot/install.sub | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index c6a9fbe2bd0..8d4b3136c69 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: install.sub,v 1.99 1998/09/28 13:28:36 deraadt Exp $ +# $OpenBSD: install.sub,v 1.100 1998/09/28 13:38:39 deraadt Exp $ # $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $ # # Copyright (c) 1997,1998 Todd Miller, Theo de Raadt @@ -1276,9 +1276,9 @@ while test -n "${_get_files}" ; do echo "" echo "$1/${_f}:" if [ "X${_f}" = "X${_kernel}" ]; then - cp $1/$_f /mnt/$_f + ftp -V -m -o /mnt/$_f file:$1/$_f else - cat $1/$_f | (cd /mnt; tar -zxvpf -) + ftp -V -m -o - file:$1/$_f | (cd /mnt; tar -zxvpf -) fi if [ $? -ne 0 ]; then # Mark xfer as having failed,. |