summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/tools.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/tools.c')
-rw-r--r--mdk-stage1/tools.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/mdk-stage1/tools.c b/mdk-stage1/tools.c
index 182e64130..a89edf613 100644
--- a/mdk-stage1/tools.c
+++ b/mdk-stage1/tools.c
@@ -222,6 +222,15 @@ int total_memory(void)
}
+int image_has_stage2()
+{
+#ifdef MANDRAKE_MOVE
+ return access(IMAGE_LOCATION "/live_tree.clp", R_OK) == 0;
+#else
+ return access(IMAGE_LOCATION LIVE_LOCATION, R_OK) == 0;
+#endif
+}
+
int ramdisk_possible(void)
{
if (total_memory() > (IS_RESCUE ? MEM_LIMIT_RESCUE : MEM_LIMIT_DRAKX))