- Timestamp:
- Oct 19, 2010, 5:13:45 PM (14 years ago)
- Location:
- drbl-virt
- Files:
-
- 1 added
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
drbl-virt/install.sh
r207 r217 24 24 jude="no" 25 25 if [ -e $Work_Home ]; then 26 echo "This system already has drbl-virt."26 echo -e "\nThis system already has drbl-virt." 27 27 read -p "Do you want to install, again (yes/no): " jude 28 28 -
drbl-virt/sbin/drbl_bridge_xen_patch
r215 r217 1 1 #!/bin/bash 2 2 # Program: 3 # Patch DRBL to bridge eth in booting 3 # Patch DRBL to bridge eth in booting (Xen) 4 4 # Author: 5 5 # Jazz, Rock {jazz, rock}@nchc.org.tw … … 17 17 # = 1. Patch DRBL initrd to support bridge = 18 18 # == Patch /usr/bin/mkpxeinitrd-net (1)Xen network scripts (2)command (3)modules == 19 # backup mkpxeinitrd-net. if already has "drbl-virt add", do nes't sed19 # backup mkpxeinitrd-net. if already has "drbl-virt add", doesn't sed 20 20 cat /usr/bin/mkpxeinitrd-net | grep "# drbl-virt add" >> /dev/null 21 21 if [ $? != 0 ]; then … … 43 43 # drbl-virt add 44 44 NICs=\$(/sbin/ifconfig | grep eth | awk '{print \$1}') 45 declare -i NICs_nu=\$(echo \$NICs |wc - l)45 declare -i NICs_nu=\$(echo \$NICs |wc -w) 46 46 NIC="" 47 47 … … 49 49 for (( i=0 ; i<\$NICs_nu ; i++ )) 50 50 do 51 NIC_IP=\$(ifconfig eth\${i} | grep "inet addr" | sed 's/inet addr://g' | sed 's/Bcast.*$//g' )51 NIC_IP=\$(ifconfig eth\${i} | grep "inet addr" | sed 's/inet addr://g' | sed 's/Bcast.*$//g' | sed 's/^[ ]*//') 52 52 if [ -n \$NIC_IP ]; then 53 53 NIC="eth\${i}" -
drbl-virt/sbin/drbl_kvm_patch.sh
r216 r217 43 43 sed -i "${modify_line}i\ # MENU HIDE" $generate_PXE_menu 44 44 modify_line=$modify_line+1 45 sed -i "${modify_line}i\ MENU LABEL DRBL-Virtualization ( $KVM_Kernel)" $generate_PXE_menu45 sed -i "${modify_line}i\ MENU LABEL DRBL-Virtualization (KVM $KVM_Kernel)" $generate_PXE_menu 46 46 modify_line=$modify_line+1 47 47 sed -i "${modify_line}i\ kernel vmlinuz-pxe" $generate_PXE_menu 48 48 modify_line=$modify_line+1 49 sed -i "${modify_line}i\ append initrd=initrd-pxe.img devfs=nomount drblthincli=off selinux=0 nomodeset" 49 sed -i "${modify_line}i\ append initrd=initrd-pxe.img devfs=nomount drblthincli=off selinux=0 nomodeset" $generate_PXE_menu 50 50 modify_line=$modify_line+1 51 51 sed -i "${modify_line}i\ TEXT HELP" $generate_PXE_menu … … 59 59 # = 2. Patch DRBL initrd to support bridge = 60 60 # == Patch /usr/bin/mkpxeinitrd-net (1)Xen network scripts (2)command (3)modules == 61 # backup mkpxeinitrd-net. if already has "drbl-virt add", do nes't sed62 source $Work_Path/drbl_bridge_ patch.sh61 # backup mkpxeinitrd-net. if already has "drbl-virt add", doesn't sed 62 source $Work_Path/drbl_bridge_kvm_patch 63 63 64 64 … … 77 77 #!/bin/sh 78 78 echo -n "Loading kvm module..." 79 if $(/sbin/modprobe kvm)79 if \$(/sbin/modprobe kvm) 80 80 then 81 81 echo "[SUCCESS]:" -
drbl-virt/sbin/drbl_xen_patch.sh
r215 r217 68 68 # == Patch /usr/bin/mkpxeinitrd-net (1)Xen network scripts (2)command (3)modules == 69 69 # backup mkpxeinitrd-net. if already has "drbl-virt add", dones't sed 70 source $Work_Path/drbl_bridge_ patch.sh70 source $Work_Path/drbl_bridge_xen_patch 71 71 72 72 # = 3. enable xend xendomains daemon in DRBL Client = -
drbl-virt/tar_drbl-virt.sh
r203 r217 1 #!/bin/bash 2 3 # [Version Setup] 4 version="0.1" 5 6 # [Main] 1 7 cd ../ 2 tar zcvf drbl-virt- 0.1$(date +%Y-%m-%d-%H-%M-%S).tar.gz drbl-virt8 tar zcvf drbl-virt-${version}_$(date +%Y-%m-%d-%H-%M-%S).tar.gz drbl-virt
Note: See TracChangeset
for help on using the changeset viewer.