diff options
Diffstat (limited to 'src/initrd/common.sh')
-rw-r--r-- | src/initrd/common.sh | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/initrd/common.sh b/src/initrd/common.sh index 0f72efe..8f4e101 100644 --- a/src/initrd/common.sh +++ b/src/initrd/common.sh | |||
@@ -55,16 +55,24 @@ bootmenu() | |||
55 | { | 55 | { |
56 | local do_trigger="$1" no_panic="$2" | 56 | local do_trigger="$1" no_panic="$2" |
57 | killall dynmenu || true | 57 | killall dynmenu || true |
58 | clear >/dev/tty7 || true | ||
59 | |||
60 | if [ "$do_trigger" ] | ||
61 | then | ||
62 | echo -n 'Attempting to restart menu after failed boot...' >/dev/tty7 | ||
63 | chvt 7 && sleep 1 || true | ||
64 | fi | ||
65 | |||
58 | if TERM=linux OpenVT -f -c 7 -s -- dynmenu "$MENUFIFO" | 66 | if TERM=linux OpenVT -f -c 7 -s -- dynmenu "$MENUFIFO" |
59 | then | 67 | then |
60 | chvt 7 || true | ||
61 | clear || true | ||
62 | menutitle 'Samizdat\n\nAs the Internet develops there are\ntransitions in the management arrangements.\nThe time has come to take\na small step in one of those transitions.' 'Choose an installation target.' | 68 | menutitle 'Samizdat\n\nAs the Internet develops there are\ntransitions in the management arrangements.\nThe time has come to take\na small step in one of those transitions.' 'Choose an installation target.' |
63 | # menutitle 'Samizdat\nfreedom from surveillance\nno trusted authorities' 'Choose an installation target.' | 69 | # menutitle 'Samizdat\nfreedom from surveillance\nno trusted authorities' 'Choose an installation target.' |
64 | addmenu "ramdisk" "[ Boot to RAM without installing anything ]" "menu-select boot-ram" | 70 | addmenu "ramdisk" "[ Boot to RAM without installing anything ]" "menu-select boot-ram" |
65 | addmenu "poweroff" "[ Shut down the system immediately ]" "poweroff -f" | 71 | addmenu "poweroff" "[ Shut down the system immediately ]" "poweroff -f" |
66 | fi | 72 | fi |
67 | if [ $? != 0 -a ! "$no_panic" ]; then | 73 | |
74 | if [ $? != 0 -a ! "$no_panic" ] | ||
75 | then | ||
68 | panic "error loading boot menu! the system won't be usable :(" | 76 | panic "error loading boot menu! the system won't be usable :(" |
69 | fi | 77 | fi |
70 | 78 | ||