# HG changeset patch # User igor # Date 1189760684 -10800 # Node ID 54c51dea92a215ee036fc60bf9e920c210a355b4 # Parent 1ede117a35ecc93ad1c2834be4ce13109ceb3048 rerunning dynamips and vtysh after exit diff -r 1ede117a35ec -r 54c51dea92a2 files/xenomips.sh --- a/files/xenomips.sh Fri Sep 14 10:36:14 2007 +0300 +++ b/files/xenomips.sh Fri Sep 14 12:04:44 2007 +0300 @@ -5,9 +5,9 @@ DYNAMIPS_WORKDIR="/xenomips/config" DYNAMIPS_ARGS=`cat /proc/cmdline | sed 's/.*xenomips="//; s/".*//'` cd "$DYNAMIPS_WORKDIR" - screen -e '^xx' -d -m dynamips $DYNAMIPS_ARGS + screen -e '^xx' -d -m sh -c 'while true; do dynamips '$DYNAMIPS_ARGS' ; done' else /etc/init.d/quagga start - screen -e '^xx' -d -m vtysh + screen -e '^xx' -d -m sh -c 'while true; do vtysh; done' fi