diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2008-10-31 16:10:47 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2008-10-31 16:10:47 +0100 |
commit | 6c37925a68ef5d8fe4539262d44e4df29c51a319 (patch) | |
tree | 50e44ec230f1795f6f4c830e88673c9f7e382fec /src/lib/lib-ui.sh | |
parent | 01c1e47953824076d93a12e38c04a1179ea70903 (diff) |
more original code processed..
Diffstat (limited to 'src/lib/lib-ui.sh')
-rw-r--r-- | src/lib/lib-ui.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/lib-ui.sh b/src/lib/lib-ui.sh index 10ad1a1..5cd7ecc 100644 --- a/src/lib/lib-ui.sh +++ b/src/lib/lib-ui.sh @@ -37,6 +37,7 @@ gui_geteditor() { esac } + # Get a list of available disks for use in the "Available disks" dialogs. This # will print the disks as follows, getting size info from hdparm: # /dev/sda: 640133 MBytes (640 GB) @@ -46,4 +47,15 @@ gui_getavaildisks() # NOTE: to test as non-root, stick in a 'sudo' before the hdparm call for i in $(finddisks); do echo -n "$i: "; hdparm -I $i | grep -F '1000*1000' | sed "s/.*1000:[ \t]*\(.*\)/\1/"; echo "\n"; done } + + +# taken from setup code. edited to echo the choice, not perform it +gui_ask_bootloader() +{ + DIALOG --colors --menu "Which bootloader would you like to use? Grub is the Arch default.\n\n" \ + 10 65 2 \ + "GRUB" "Use the GRUB bootloader (default)" \ + "None" "\Zb\Z1Warning\Z0\ZB: you must install your own bootloader!" 2>$ANSWER + cat $ANSWER +}
\ No newline at end of file |