From 94fa1f6ef58e053b254579bbffb2302671495c84 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 5 Jul 2007 14:21:15 +0000 Subject: link rescue-gui with params (prepare next commits) --- mdk-stage1/Makefile | 2 +- mdk-stage1/rescue-gui.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'mdk-stage1') diff --git a/mdk-stage1/Makefile b/mdk-stage1/Makefile index c7a9a92e9..e14891b6a 100644 --- a/mdk-stage1/Makefile +++ b/mdk-stage1/Makefile @@ -200,7 +200,7 @@ localclean: rm -f *.o .depend *.rdz *.img $(BINS) -rescue-gui: rescue-gui.o frontend-common.o $(FRONTEND_LINK) $(STAGE1_LIBC) +rescue-gui: rescue-gui.o frontend-common.o params.o utils.o log.o automatic.o $(FRONTEND_LINK) $(STAGE1_LIBC) $(DIET) $(CC) $(LDFLAGS) -o $@ $^ $(STRIPCMD) $@ diff --git a/mdk-stage1/rescue-gui.c b/mdk-stage1/rescue-gui.c index f0d24d56a..77113354b 100644 --- a/mdk-stage1/rescue-gui.c +++ b/mdk-stage1/rescue-gui.c @@ -59,6 +59,12 @@ static void PAUSE(void) { /* ------ UUURGH this is duplicated from `init.c', don't edit here........ */ +void fatal_error(char *msg) +{ + printf("FATAL ERROR IN RESCUE: %s\n\nI can't recover from this.\nYou may reboot your system.\n", msg); + while (1); +} + static inline _syscall3(int, reboot, int, magic, int, magic2, int, flag); #define LOOP_CLR_FD 0x4C01 void del_loop(char *device) @@ -152,6 +158,7 @@ void unmount_filesystems(void) /* ------ UUURGH -- this is dirrrrrttttyyyyyy */ void probe_that_type(void) {} +void exit_bootsplash(void) {} int main(int argc __attribute__ ((unused)), char **argv __attribute__ ((unused))) -- cgit v1.2.1