#!/bin/sh typ=$1 #0:stop all #1:start use cases #2:restart gateway if [ "$typ" = "0" ];then killall usecases_proxy killall lora_pkt_fwd killall process.sh elif [ "$typ" = "1" ];then /gateway/usecases_proxy -d Gateway & elif [ "$typ" = "2" ];then killall lora_pkt_fwd killall process.sh sh /gateway/start.sh fi