diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2009-05-03 21:20:48 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2009-05-03 21:20:48 +0000 |
commit | 8b4782caaa1d3d00f01dc6f676636f4401c3cf8d (patch) | |
tree | 94aa1265020251384c2fd71ee001e3f0b9ed36f3 /distrib/miniroot/install.sub | |
parent | e25ed1bbd4c835dd2c3326f13bc616f5e3474e24 (diff) |
don't emit spurious error when no network is configured, also fix typos.
ok deraadt@
Diffstat (limited to 'distrib/miniroot/install.sub')
-rw-r--r-- | distrib/miniroot/install.sub | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 576ed23f4d0..0ef17a42ee2 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,4 +1,4 @@ -# $OpenBSD: install.sub,v 1.512 2009/05/03 06:19:14 deraadt Exp $ +# $OpenBSD: install.sub,v 1.513 2009/05/03 21:20:47 sthen Exp $ # $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $ # # Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback @@ -1137,7 +1137,7 @@ ftp_error() { startftplist() { # If no networks are configured, we do not need the ftplist file # XXX does this work on upgrades? - [[ -z $(ls /tmp/hostname.* /mnt/etc/hostname.*) ]] && return + ls /tmp/hostname.* /mnt/etc/hostname.* >/dev/null 2>&1 && return # ftp.openbsd.org == 129.128.5.191 and will remain at # that address for the foreseeable future. @@ -1145,9 +1145,9 @@ startftplist() { 2>/tmp/ftplisterr > $SERVERLISTALL & ftppid=$! # If the ftp process takes more than 9 seconds, kill it - # XXX We are relyong on the pid space not randomly biting us -- + # XXX We are relying on the pid space not randomly biting us -- # XXX ftp could terminate early, and the pid could be reused - (sleep 9; kill -INT $ftppid >/devnull 2>&1) & + (sleep 9; kill -INT $ftppid >/dev/null 2>&1) & } # Wait for the ftp process to finish, or be killed after the timeout |