Ignore:
Timestamp:
Aug 2, 2010, 5:23:40 PM (14 years ago)
Author:
rock
Message:

Add: drbl_patch.sh drbl_virt_remove.sh conf/xend-config.sxp

File:
1 moved

Legend:

Unmodified
Added
Removed
  • drbl-virt/sbin/funs_drbl_virt

    r159 r161  
    1919function check_root(){     
    2020  if [ $USER != "root" ]; then
    21     echo "Please change user to root !!!"
    22     exit                   
     21    echo -e "Please input root password to run it!"
     22    su -c "$0" "$@"                   
     23
    2324  fi
    2425}
     
    4647       read -p "Which VMM/Hypervisior will be used in DRBL (1)Xen (2)KVM: " VMM_select
    4748    done
     49    echo "Xen" > $Work_Home/.tmp/hypervisior
    4850else
    4951    echo "Xen will be the only Hypervisior in your DRBL"
    5052    echo -e "Because CPU don't support virtualization, \nit can't choose KVM to be the Hypervisior"
    5153    VMM_select=2
     54    echo "KVM" > $Work_Home/.tmp/hypervisior
    5255fi 
    5356}   
    5457
     58# [create drbl-virt path]
     59function install_drbl-virt_dir(){
     60    mkdir -p $Work_Home/.tmp
     61}
     62
     63# [check Hypervisior]
     64function check_hypervisior(){
     65    return $(cat $Work_Home/.tmp/hypervisior)
     66}
     67
    5568# [DRBL Check]
    5669
Note: See TracChangeset for help on using the changeset viewer.