#!/bin/sh case "$1" in start) sleep 1 if pidof hackindle > /dev/null then echo "hackindle is already started" else echo "starting hackindle" /mnt/us/hackindle/hackindle & fi ;; stop) echo "stopping hackindle" killall hackindle ;; restart) echo "restarting hackindle" /etc/init.d/terminal start & killall hackindle ;; *) echo "Usage: $0 {start|stop}" >&2 exit 1 ;; esac exit 0