#!/bin/bash
# Program:
#   DRBL virt module (kvm_install.sh)
# Author: 
#   Jazz, Rock {jazz, rock}@nchc.org.tw
# Version:
#    1.0
# History:                                                                                          
#   2010/07/20  Rock    First release (1.0) 

source /opt/drbl-virt/conf/drbl-virt.conf
source $Work_Path/functions_drbl_virt

#  [ Main ]
check_systemInfo

# = 1. Intall KVM =
case $Linux_Distribution in
    # for Ubuntu
    "Ubuntu")
        echo "please check kernel (KVM enabled)"  
        echo "Push [Enetr] to install KVM package..."
        aptitude update ; aptitude install kvm bridge-utils
    ;;
    # for Debian
    "Debian")
        echo "please check kernel (KVM enabled)"
        echo "Push [Enetr] to install KVM package..."
        aptitude update ; aptitude install kvm bridge-utils
    ;;
    # for Fedora
    "Fedora")        
        echo "Only support Debain."
        exit
    ;;
    *)
        echo "Only support Debain."
        exit
    ;;
esac
