xentaur

diff build-xenomips-image @ 50:ca80f73e403b

fix
author igor
date Thu Oct 25 18:02:18 2007 +0300 (2007-10-25)
parents 9c7a4cfa9738
children 129c08025d07
line diff
     1.1 --- a/build-xenomips-image	Wed Oct 24 15:17:30 2007 +0300
     1.2 +++ b/build-xenomips-image	Thu Oct 25 18:02:18 2007 +0300
     1.3 @@ -1,10 +1,15 @@
     1.4  #!/bin/sh
     1.5  
     1.6  DYNAMIPS_BUILD=no
     1.7 -XENOMIPS_FS_BUILD=no
     1.8 -CONFIG_FS_BUILD=no
     1.9 +XENOMIPS_FS_BUILD=yes
    1.10 +CONFIG_FS_BUILD=yes
    1.11  IOS_FS_BUILD=yes
    1.12  
    1.13 +process_args()
    1.14 +{
    1.15 +    true
    1.16 +}
    1.17 +
    1.18  XENOMIPS_DIR="files/"
    1.19  XENOMIPS_IMAGES_DIR="/xen/images/"
    1.20  IOS_DIR="ios/"
    1.21 @@ -106,9 +111,16 @@
    1.22  #iface eth0 inet dhcp
    1.23  INTERFACES
    1.24  
    1.25 -echo /usr/local/bin/xenomips.sh > /etc/rc.local
    1.26 +#echo /usr/local/bin/xenomips.sh > /etc/rc.local
    1.27  cd /etc/rcS.d; ln -s ../init.d/xenomips-init S35xenomips-init
    1.28  rm /etc/rc2.d/S*quagga
    1.29 +cd /etc/rc2.d; ln -s ../init.d/xenomips S99xenomips
    1.30 +cd /etc/rc3.d; ln -s ../init.d/xenomips S99xenomips
    1.31 +cd /etc/rc4.d; ln -s ../init.d/xenomips S99xenomips
    1.32 +cd /etc/rc5.d; ln -s ../init.d/xenomips S99xenomips
    1.33 +cd /etc/rc0.d; ln -s ../init.d/xenomips K01xenomips
    1.34 +cd /etc/rc1.d; ln -s ../init.d/xenomips K01xenomips
    1.35 +cd /etc/rc6.d; ln -s ../init.d/xenomips K01xenomips
    1.36  
    1.37  #perl -i -p -e s@C_PATH=/etc/quagga@C_PATH=/xenomips/etc/quagga@ /etc/init.d/quagga
    1.38  mv /etc/quagga /etc/quagga.ORIG
    1.39 @@ -128,8 +140,8 @@
    1.40      done
    1.41  
    1.42      cp ${XENOMIPS_DIR}/xenomips-init ${WORK_DIR}/etc/init.d/
    1.43 -    cp ${XENOMIPS_DIR}/xenomips.sh ${WORK_DIR}/usr/local/bin
    1.44 -    sudo chmod +x  ${WORK_DIR}/usr/local/bin/xenomips.sh ${WORK_DIR}/etc/init.d/xenomips-init
    1.45 +    cp ${XENOMIPS_DIR}/xenomips.sh ${WORK_DIR}/etc/init.d/xenomips
    1.46 +    sudo chmod +x  ${WORK_DIR}/etc/init.d/xenomips ${WORK_DIR}/etc/init.d/xenomips-init
    1.47  
    1.48      cat ${SSH_OPEN_KEY} > ${WORK_DIR}/root/.ssh/authorized_keys
    1.49      chmod 600  ${WORK_DIR}/root/.ssh/authorized_keys