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@7: screen -e '^xx' -d -m dynamips $DYNAMIPS_ARGS igor@7: else igor@7: /etc/init.d/quagga start igor@7: screen -e '^xx' -d -m vtysh igor@7: fi igor@0: