#!/system/bin/sh
# /system/xbin/log.sh
cd /data/ztg_tmp
echo "log.sh $1" >> /data/ztg_tmp/timestamp.txt
date >> /data/ztg_tmp/timestamp.txt
ps >> /data/ztg_tmp/ps$1.txt
dmesg >> /data/ztg_tmp/dmesg$1.txt
#cat /proc/sys/net/ipv4/ip* >> ip$1.txt
#cat /proc/sys/net/ipv4/icmp* >> icmp$1.txt
cd -