Changeset 161 for drbl-virt/sbin/funs_drbl_virt
- Timestamp:
 - Aug 2, 2010, 5:23:40 PM (15 years ago)
 - File:
 - 
          
- 1 moved
 
- 
          drbl-virt/sbin/funs_drbl_virt (moved) (moved from drbl-virt/sbin/drbl_virt_funs) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
drbl-virt/sbin/funs_drbl_virt
r159 r161 19 19 function check_root(){ 20 20 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 23 24 fi 24 25 } … … 46 47 read -p "Which VMM/Hypervisior will be used in DRBL (1)Xen (2)KVM: " VMM_select 47 48 done 49 echo "Xen" > $Work_Home/.tmp/hypervisior 48 50 else 49 51 echo "Xen will be the only Hypervisior in your DRBL" 50 52 echo -e "Because CPU don't support virtualization, \nit can't choose KVM to be the Hypervisior" 51 53 VMM_select=2 54 echo "KVM" > $Work_Home/.tmp/hypervisior 52 55 fi 53 56 } 54 57 58 # [create drbl-virt path] 59 function install_drbl-virt_dir(){ 60 mkdir -p $Work_Home/.tmp 61 } 62 63 # [check Hypervisior] 64 function check_hypervisior(){ 65 return $(cat $Work_Home/.tmp/hypervisior) 66 } 67 55 68 # [DRBL Check] 56 69  
Note: See TracChangeset
          for help on using the changeset viewer.
      