summaryrefslogtreecommitdiff
path: root/tethering_dump.sh
blob: 359f7728d45738152cc1ddd1cfe13d580ea72a5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
PATH=/bin:/usr/bin:/sbin:/usr/sbin
#
# Tethering module log dump (tethering_dump.sh)
#

# Variables
TETH_DEBUG=$1/tethering
mkdir -p ${TETH_DEBUG}

# copy files
/bin/cp -rf /tmp/dnsmasq.conf /opt/var/lib/misc/* ${TETH_DEBUG}

/usr/sbin/iptables -t nat -L -vv > ${TETH_DEBUG}/iptables_nat.log
/usr/sbin/iptables -L -vv > ${TETH_DEBUG}/iptables_filter.log