xentaur
view files/xenomips.sh @ 33:c68d804c3017
* Trying to add classes (bridge class)
* Configuration templates
* Function save() --- dumps network topology
* Configuration templates
* Function save() --- dumps network topology
author | igor |
---|---|
date | Sat Sep 22 02:25:18 2007 +0300 (2007-09-22) |
parents | 54c51dea92a2 |
children | 65e80fabc89c |
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 sh -c "while true; do dynamips $DYNAMIPS_ARGS ; done"
9 else
10 /etc/init.d/quagga start
11 screen -e '^xx' -d -m sh -c 'while true; do vtysh; done'
12 fi