#!/bin/bash . /etc/profile which evrouter >/dev/null 2>/dev/null if [ $? = 0 ] then DISPLAY=localhost:50 evrouter -q rm -rf /tmp/.evrouter* else sv down evrouter fi