INTERFACE_BRIDGE=br0
# Default Value for INTERFACE_LAN
- INTERFACE_LAN=eth0
+ INTERFACE_LAN=$(netstat -rn | grep '^0.0.0.0' | awk '{print $8;}')
echo "========== $COMMAND: entering start - beg"
function prepare_host() {
#Bridge init
- bridge_init
+ isInstalled=$(netstat -rn | grep '^0.0.0.0' | awk '{print $8;}')
+ if [ "$isInstalled" != "br0" ] ; then
+ bridge_init
+ sleep5
+ fi
#install development tools
isInstalled=$(yum grouplist "Development Tools" | grep Installed)
# rpm --rebuilddb
chroot $rootfs_path rpm --rebuilddb
+ #ssh -o "StrictHostKeyChecking no" $IP "rpm --rebuilddb"
configure_yum_in_lxc $lxc $fcdistro $pldistro