Last change
on this file since 167 was
161,
checked in by rock, 14 years ago
|
Add: drbl_patch.sh drbl_virt_remove.sh conf/xend-config.sxp
|
-
Property svn:executable set to
*
|
File size:
1.3 KB
|
Rev | Line | |
---|
[161] | 1 | #!/bin/bash |
---|
| 2 | # Program: |
---|
| 3 | # Remove DRBL virt module |
---|
| 4 | # Author: |
---|
| 5 | # Jazz, Rock {jazz, rock}@nchc.org.tw |
---|
| 6 | # Version: |
---|
| 7 | # 1.0 |
---|
| 8 | # History: |
---|
| 9 | # 2010/07/20 Rock First release (1.0) |
---|
| 10 | |
---|
| 11 | # [PATH] |
---|
| 12 | Work_Path=$(dirname "$0") |
---|
| 13 | PATH=${PATH}:$Work_Path |
---|
| 14 | |
---|
| 15 | # [Source] |
---|
| 16 | source funs_drbl_virt |
---|
| 17 | |
---|
| 18 | # [Main] |
---|
| 19 | check_systemInfo |
---|
| 20 | |
---|
| 21 | case $Linux_Distribution in |
---|
| 22 | # for Ubuntu |
---|
| 23 | "Ubuntu") |
---|
| 24 | echo "Only support Debain" |
---|
| 25 | ;; |
---|
| 26 | # for Debian |
---|
| 27 | "Debian") |
---|
| 28 | # check bit |
---|
| 29 | echo $Linux_bit | grep 64 |
---|
| 30 | if [ $? == 0 ]; then |
---|
| 31 | Linux_bit="amd64" |
---|
| 32 | else |
---|
| 33 | Linux_bit="686" |
---|
| 34 | fi |
---|
| 35 | |
---|
| 36 | # check version |
---|
| 37 | echo $Linux_Version | grep "^5" |
---|
| 38 | if [ $? == 0 ]; then |
---|
| 39 | hypervisior=check_hypervisior |
---|
| 40 | if [ $hypervisior == "Xen" ]; then |
---|
| 41 | aptitude remove xen-linux-system-2.6.26-2-xen-${Linux_bit} xen-tools |
---|
| 42 | else |
---|
| 43 | aptitude remove kvm |
---|
| 44 | fi |
---|
| 45 | fi |
---|
| 46 | ;; |
---|
| 47 | # for Fedora |
---|
| 48 | "Fedora") |
---|
| 49 | echo "Only support Debain" |
---|
| 50 | ;; |
---|
| 51 | *) |
---|
| 52 | echo "Only support Debain" |
---|
| 53 | ;; |
---|
| 54 | esac |
---|
| 55 | |
---|
Note: See
TracBrowser
for help on using the repository browser.