xentaur

view files/xenomips.sh @ 11:1ede117a35ec

mini changes
author igor
date Fri Sep 14 10:36:14 2007 +0300 (2007-09-14)
parents ab37f0ad70e5
children 54c51dea92a2
line source
1 #!/bin/sh
3 if grep -qi xenomips /proc/cmdline
4 then
5 DYNAMIPS_WORKDIR="/xenomips/config"
6 DYNAMIPS_ARGS=`cat /proc/cmdline | sed 's/.*xenomips="//; s/".*//'`
7 cd "$DYNAMIPS_WORKDIR"
8 screen -e '^xx' -d -m dynamips $DYNAMIPS_ARGS
9 else
10 /etc/init.d/quagga start
11 screen -e '^xx' -d -m vtysh
12 fi