igor@0: #!/bin/sh igor@0: igor@7: if grep -qi xenomips /proc/cmdline igor@7: then igor@7: DYNAMIPS_WORKDIR="/xenomips/config" igor@7: DYNAMIPS_ARGS=`cat /proc/cmdline | sed 's/.*xenomips="//; s/".*//'` igor@7: cd "$DYNAMIPS_WORKDIR" igor@13: screen -e '^xx' -d -m sh -c "while true; do dynamips $DYNAMIPS_ARGS ; done" igor@7: else igor@7: /etc/init.d/quagga start igor@12: screen -e '^xx' -d -m sh -c 'while true; do vtysh; done' igor@7: fi igor@0: