local/www/cgi-bin/register/query_sn
@@ -1,5 +1,6 @@ #!/bin/sh # 查询-串口设备 export PATH=/sbin:/usr/sbin:$PATH echo -en "Content-type: text/html; charset=utf-8\n\n" #***************************************************** source ../bin/env.sh @@ -11,7 +12,11 @@ #echo "query device list: $content" >> log tmp=`sqlite3 /work/iot_cfg.db "select id from machine"` if [ "$tmp" = "" ];then /usr/local/script/update_sn > /dev/null fi sn=`sqlite3 /work/iot_cfg.db "select id from machine"`