xentaur

diff files/xenomips.sh @ 7:825cd93472de

Dodelal
author igor
date Thu Aug 02 20:46:09 2007 +0300 (2007-08-02)
parents ab37f0ad70e5
children 54c51dea92a2
line diff
     1.1 --- a/files/xenomips.sh	Fri Jul 13 16:57:33 2007 +0300
     1.2 +++ b/files/xenomips.sh	Thu Aug 02 20:46:09 2007 +0300
     1.3 @@ -1,9 +1,13 @@
     1.4  #!/bin/sh
     1.5  
     1.6 -DYNAMIPS_WORKDIR="/xenomips/config"
     1.7 -DYNAMIPS_ARGS=`cat /proc/cmdline | sed 's/.*xenomips="//; s/".*//'`
     1.8 +if grep -qi xenomips /proc/cmdline
     1.9 +then 
    1.10 +    DYNAMIPS_WORKDIR="/xenomips/config"
    1.11 +    DYNAMIPS_ARGS=`cat /proc/cmdline | sed 's/.*xenomips="//; s/".*//'`
    1.12 +    cd "$DYNAMIPS_WORKDIR"
    1.13 +    screen -e '^xx' -d -m dynamips $DYNAMIPS_ARGS
    1.14 +else
    1.15 +    /etc/init.d/quagga start
    1.16 +    screen -e '^xx' -d -m vtysh
    1.17 +fi
    1.18  
    1.19 -
    1.20 -cd "$DYNAMIPS_WORKDIR"
    1.21 -screen -e '^``' -d -m dynamips $DYNAMIPS_ARGS
    1.22 -