#!/bin/sh
# vliloconf
# This is a chooser between lilo and grub2
# 
# By Uel Archuletta ,2011
# License: GNU GPL
#


vdir=$(dirname $0)
. $vdir/vasm-functions

check_root


menu()
{
$DCMD --backtitle "$BACKTITLE" --title "LILO INSTALL" --menu "\n
LILO (Linux Loader) allows you to boot various operating systems on
multiple partitions.\n
Choose this if you want to install lilo\n
GRUB2 (bootloader) allows you to boot various operating systems on
multiple partitions\n
Which option would you like?" \
0 0 4 \
"LILO" "install LILO" \
"GRUB2" "install GRUB2" \
"SKIP" "EXIT" \
2> $freply

 result=$?
 [ $result != 0 ] && return $result

reply="`cat $freply`"
case "$reply" in
  LILO)
   vliloconf2
  ;;
 GRUB2)
   vgrubinstall
  ;;
 *)
  clean_exit
  ;;
esac 
return 0
}

############################
# MAIN MENU
wizard menu


