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"
 
 
read data
 
time=`$jsoner "$data" time`
 
date -s "$time" > /dev/null
/sbin/hwclock -w
 
echo "{\"code\":\"success\"}"