aboutsummaryrefslogtreecommitdiffstats
path: root/memdisk/fdgeo.pl
diff options
context:
space:
mode:
Diffstat (limited to 'memdisk/fdgeo.pl')
-rwxr-xr-xmemdisk/fdgeo.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/memdisk/fdgeo.pl b/memdisk/fdgeo.pl
index eafef761..b76727d1 100755
--- a/memdisk/fdgeo.pl
+++ b/memdisk/fdgeo.pl
@@ -33,6 +33,7 @@ if ($sec < 320*2) {
} else {
printf "%.1fK, %d sectors: ", $sec/2, $sec;
print "Considered a hard disk\n";
+ exit 2;
}
$ok = 0;
@@ -48,6 +49,8 @@ while ($c < 256) {
printf "%.1fK, %d sectors: ", $sec/2, $sec;
if ($ok) {
print "c=$c, h=$h, s=$s, type=$type\n";
+ exit 0;
} else {
print "No valid geometry found (MEMDISK will fake it)\n";
+ exit 1;
}