xentaur

diff files/xenomips.sh @ 12:54c51dea92a2

rerunning dynamips and vtysh after exit
author igor
date Fri Sep 14 12:04:44 2007 +0300 (2007-09-14)
parents 825cd93472de
children de23c23ef4ac
line diff
     1.1 --- a/files/xenomips.sh	Thu Aug 02 20:46:09 2007 +0300
     1.2 +++ b/files/xenomips.sh	Fri Sep 14 12:04:44 2007 +0300
     1.3 @@ -5,9 +5,9 @@
     1.4      DYNAMIPS_WORKDIR="/xenomips/config"
     1.5      DYNAMIPS_ARGS=`cat /proc/cmdline | sed 's/.*xenomips="//; s/".*//'`
     1.6      cd "$DYNAMIPS_WORKDIR"
     1.7 -    screen -e '^xx' -d -m dynamips $DYNAMIPS_ARGS
     1.8 +    screen -e '^xx' -d -m sh -c 'while true; do dynamips '$DYNAMIPS_ARGS' ; done'
     1.9  else
    1.10      /etc/init.d/quagga start
    1.11 -    screen -e '^xx' -d -m vtysh
    1.12 +    screen -e '^xx' -d -m sh -c 'while true; do vtysh; done'
    1.13  fi
    1.14