You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
342 B
20 lines
342 B
#!/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
|
|
|
|
|
|
|