lgq
2025-07-16 b99a6e1b1676b5008629194b99a2b899546c5f51
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"`