From 4e5c98b81e00478f560fed1ae4ac4de6b5cc272d Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 4 Nov 2004 12:02:53 +0000 Subject: test_that_cd() is now image_has_stage2() --- mdk-stage1/tools.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mdk-stage1/tools.c') 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)) -- cgit v1.2.1