tizen 2.3 release
[framework/connectivity/mobileap-agent.git] / tethering_dump.sh
1 #!/bin/sh
2 #
3 # Tethering module log dump (tethering_dump.sh)
4 #
5
6 # Variables
7 TETH_DEBUG=$1/tethering
8 mkdir -p ${TETH_DEBUG}
9
10 # copy files
11 #/bin/cp -a /tmp/hostapd.log ${TETH_DEBUG}
12 /bin/cp -rf /tmp/dnsmasq.conf /opt/var/lib/misc/* ${TETH_DEBUG}
13
14 #vconftool get db/mobile_hotspot > ${TETH_DEBUG}/vconf_db.log
15 #vconftool get memory/mobile_hotspot > ${TETH_DEBUG}/vconf_memory.log
16 /usr/sbin/iptables -t nat -L -vv > ${TETH_DEBUG}/iptables_nat.log
17 /usr/sbin/iptables -L -vv > ${TETH_DEBUG}/iptables_filter.log