Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Feb 2018 21:56:39 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r328833 - head/tools/tools/nanobsd
Message-ID:  <201802032156.w13LudI6053858@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Sat Feb  3 21:56:38 2018
New Revision: 328833
URL: https://svnweb.freebsd.org/changeset/base/328833

Log:
  Fix backward conditional.
  
  Pointed out by: david boyer

Modified:
  head/tools/tools/nanobsd/legacy.sh

Modified: head/tools/tools/nanobsd/legacy.sh
==============================================================================
--- head/tools/tools/nanobsd/legacy.sh	Sat Feb  3 20:53:21 2018	(r328832)
+++ head/tools/tools/nanobsd/legacy.sh	Sat Feb  3 21:56:38 2018	(r328833)
@@ -29,8 +29,8 @@
 #
 
 # Media geometry, only relevant if bios doesn't understand LBA.
-[ -z "$NANO_SECTS" ] || NANO_SECTS=63
-[ -z "$NANO_HEADS" ] || NANO_HEADS=16
+[ -n "$NANO_SECTS" ] || NANO_SECTS=63
+[ -n "$NANO_HEADS" ] || NANO_HEADS=16
 
 # Functions and variable definitions used by the legacy nanobsd
 # image building system.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802032156.w13LudI6053858>