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.