#!/bin/sh

BOARDNAME="$(cat /tmp/sysinfo/board_name)"
if [ "$BOARDNAME" != "QIYANG_IMX6ULL_2" ] ;then
	echo "$PRODUCT NOT SUPPORT!!!"
	exit 1
fi

instsvr_stop() {
	local initd="/etc/init.d/$1"
	if [ -x "${initd}" ] ; then
		"${initd}" stop
		return $?
	fi
	return 1
}

instsvr_stop rs485
instsvr_stop whsnbg
instsvr_stop cloud_conn_dayun
instsvr_stop dido_modbus_tcp

lua /app/diag_for_"$BOARDNAME".lua $*
exit 0

