Changeset 218
- Timestamp:
- Oct 20, 2010, 11:10:46 AM (14 years ago)
- Location:
- drbl-virt
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
drbl-virt/sbin/drbl_bridge_kvm_patch
r217 r218 21 21 if [ $? != 0 ]; then 22 22 cp /usr/bin/mkpxeinitrd-net /usr/bin/mkpxeinitrd-net.drbl-virt_bak 23 # copy Xen network scripts 24 cp $Work_Home/conf/initrd_bin/network-bridge /usr/lib/mkpxeinitrd-net/initrd-skel/bin/ 25 cp $Work_Home/conf/initrd_bin/xen-network-common.sh /usr/lib/mkpxeinitrd-net/initrd-skel/bin/ 26 cp $Work_Home/conf/initrd_bin/xen-script-common.sh /usr/lib/mkpxeinitrd-net/initrd-skel/bin/ 23 27 24 28 # patch it to copy command … … 37 41 #!/bin/bash 38 42 # drbl-virt add 39 NICs= $(/sbin/ifconfig | grep eth | awk '{print$1}')40 declare -i NICs_nu= $(echo$NICs |wc -w)43 NICs=\$(/sbin/ifconfig | grep eth | awk '{print \$1}') 44 declare -i NICs_nu=\$(echo \$NICs |wc -w) 41 45 42 for NIC in $NICs46 for NIC in \$NICs 43 47 do 44 NIC_IP= $(ifconfig$NIC | grep "inet addr" | sed 's/inet addr://g' | sed 's/Bcast.*$//g' | sed 's/^[ ]*//')48 NIC_IP=\$(ifconfig \$NIC | grep "inet addr" | sed 's/inet addr://g' | sed 's/Bcast.*$//g' | sed 's/^[ ]*//') 45 49 46 if [ -n $NIC_IP ]; then50 if [ -n \$NIC_IP ]; then 47 51 break 48 52 fi 49 53 done 50 54 51 # add bridge and bridge to eth 52 /bin/brctl addbr br0 53 /bin/brctl addif br0 \$NIC 54 /bin/ifconfig \$NIC 0.0.0.0 up 55 /bin/ifconfig br0 \$NIC_IP up 55 # add bridge to eth 56 bash /bin/network-bridge start netdev=\$NIC 56 57 EOF 57 58 fi -
drbl-virt/sbin/drbl_bridge_xen_patch
r217 r218 22 22 cp /usr/bin/mkpxeinitrd-net /usr/bin/mkpxeinitrd-net.drbl-virt_bak 23 23 # copy Xen network scripts 24 cp /etc/xen/scripts/network-bridge /usr/lib/mkpxeinitrd-net/initrd-skel/bin/25 cp /etc/xen/scripts/xen-network-common.sh /usr/lib/mkpxeinitrd-net/initrd-skel/bin/26 cp /etc/xen/scripts/xen-script-common.sh /usr/lib/mkpxeinitrd-net/initrd-skel/bin/24 cp $Work_Home/conf/initrd_bin/network-bridge /usr/lib/mkpxeinitrd-net/initrd-skel/bin/ 25 cp $Work_Home/conf/initrd_bin/xen-network-common.sh /usr/lib/mkpxeinitrd-net/initrd-skel/bin/ 26 cp $Work_Home/conf/initrd_bin/xen-script-common.sh /usr/lib/mkpxeinitrd-net/initrd-skel/bin/ 27 27 # patch it to copy command 28 28 declare -i modify_line=$(cat -n /usr/bin/mkpxeinitrd-net | grep 'include_bin_prog_from_server=' | awk '{print $1}') -
drbl-virt/tar_drbl-virt.sh
r217 r218 6 6 # [Main] 7 7 cd ../ 8 tar zcvf drbl-virt-${version}_$(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 --exclude=.svn drbl-virt
Note: See TracChangeset
for help on using the changeset viewer.