IGD3000系列(一体屏)网关的app和文件系统的打包目录
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
# 获取DO状态
echo -en "Content-type: text/html; charset=utf-8\n\n"
#*****************************************************
source ../bin/env.sh
db="../bin/db"
jsoner="../bin/jsoner"
 
read content
 
#echo $content > log
 
devType=`$jsoner "$content" category`
 
i=1
 
for line in `cat /work/controlShow`
do
    if [ $line -eq $devType ]
    then
        i=0
    fi
done
 
if [ $i -eq 0 ]
then 
    echo "{\"code\":\"success\"}"
else
    echo "{\"code\":\"error\"}"
fi