Rev | Line | |
---|
[156] | 1 | #!/bin/bash |
---|
| 2 | # Program: |
---|
| 3 | # 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 | # [ Intall ] |
---|
| 12 | case $Linux_Distribution in |
---|
| 13 | # for Ubuntu |
---|
| 14 | "Ubuntu") |
---|
| 15 | echo "Only support Debain" |
---|
| 16 | ;; |
---|
| 17 | # for Debian |
---|
| 18 | "Debian") |
---|
| 19 | # check bit |
---|
| 20 | echo $Linux_bit | grep 64 |
---|
| 21 | if [ $? == 0 ]; then |
---|
| 22 | Linux_bit="amd64" |
---|
| 23 | else |
---|
| 24 | Linux_bit="686" |
---|
| 25 | fi |
---|
| 26 | |
---|
| 27 | # check version |
---|
| 28 | echo $Linux_Version | grep "^5" |
---|
| 29 | if [ $? == 0 ]; then |
---|
| 30 | aptitude update |
---|
| 31 | aptitude install xen-linux-system-2.6.26-2-xen-${Linux_bit} xen-tools |
---|
| 32 | fi |
---|
| 33 | ;; |
---|
| 34 | # for Fedora |
---|
| 35 | "Fedora") |
---|
| 36 | echo "Only support Debain" |
---|
| 37 | ;; |
---|
| 38 | *) |
---|
| 39 | echo "Only support Debain" |
---|
| 40 | ;; |
---|
| 41 | esac |
---|
Note: See
TracBrowser
for help on using the repository browser.