xentaur

diff build-xenomips-image @ 12:54c51dea92a2

rerunning dynamips and vtysh after exit
author igor
date Fri Sep 14 12:04:44 2007 +0300 (2007-09-14)
parents 3d837efe2d1c
children de23c23ef4ac
line diff
     1.1 --- a/build-xenomips-image	Fri Aug 17 16:23:42 2007 +0300
     1.2 +++ b/build-xenomips-image	Fri Sep 14 12:04:44 2007 +0300
     1.3 @@ -66,6 +66,9 @@
     1.4  apt-get -y --force-yes install ${PACKAGES}
     1.5  /etc/init.d/ssh stop
     1.6  cat <<FSTAB > /etc/fstab
     1.7 +proc            /proc           proc            defaults                0       0
     1.8 +tmpfs           /tmp            tmpfs           defaults,nosuid,nodev   0       0
     1.9 +
    1.10  /dev/hda1       /                       ext3    ro              0       0
    1.11  /dev/hda2       /xenomips/ios           ext3    ro              0       0
    1.12  /dev/hda3       /xenomips/config        ext3    rw              0       0
    1.13 @@ -97,7 +100,10 @@
    1.14  PROFILE
    1.15  SCRIPT
    1.16  
    1.17 -cp -R /lib/modules/${KERNEL_VERSION} ${WORK_DIR}/lib/modules
    1.18 +for kernel_version in ${KERNEL_VERSION} 2.6.18-without-PAE-4-xen-686
    1.19 +do
    1.20 +    cp -R /lib/modules/${KERNEL_VERSION} ${WORK_DIR}/lib/modules
    1.21 +done
    1.22  
    1.23  cp ${XENOMIPS_DIR}/xenomips-init ${WORK_DIR}/etc/init.d/
    1.24  cp ${XENOMIPS_DIR}/xenomips.sh ${WORK_DIR}/usr/local/bin
    1.25 @@ -109,6 +115,8 @@
    1.26  build_and_install_dynamips
    1.27  
    1.28  mv ${WORK_DIR}/etc/quagga.ORIG ${WORK_DIR2}/quagga
    1.29 +perl -i -p -e 's/=no/=yes/' ${WORK_DIR2}/quagga/daemons
    1.30 +touch ${WORK_DIR2}/quagga/{zebra,bgpd,ospfd,ripd,ripngd,ospf6d,isisd}.conf
    1.31  umount ${WORK_DIR}
    1.32  
    1.33  if  echo $CONFIG_FS_BUILD | grep -qi ^y