1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
# 查询-所有设备列表 包括串口设备、扩展设备、网口设备
echo -en "Content-type: text/html; charset=utf-8\n\n"
#*****************************************************
source ../bin/env.sh
 
jsoner="../bin/jsoner"
 
file="/tmp/.debug_mode"
 
if [ -f $file ]
then
    echo "{\"mode\": \"debug\"}"
else
    echo "{\"mode\": \"normal\"}"
fi