From 9a0e2e232b25546f56f6ff0b33347c854dc41b07 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sat, 3 Feb 2018 21:56:38 +0000 Subject: [PATCH] Fix backward conditional. Pointed out by: david boyer --- tools/tools/nanobsd/legacy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/tools/nanobsd/legacy.sh b/tools/tools/nanobsd/legacy.sh index 0ae8290b75f..0832179ba22 100644 --- a/tools/tools/nanobsd/legacy.sh +++ b/tools/tools/nanobsd/legacy.sh @@ -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.