From 85bdc5b94c8a1730d3077f361297028cfd8b9b78 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sun, 16 Sep 2018 20:17:57 +0200 Subject: MTK mt76 hwnat implementation --- package/base-files/files/usr/sbin/7621_15d_hwnat_disable.sh | 4 ++++ package/base-files/files/usr/sbin/7621_15d_hwnat_enable.sh | 4 ++++ package/base-files/files/usr/sbin/hwnat-disable.sh | 4 ++++ package/base-files/files/usr/sbin/hwnat-enable.sh | 4 ++++ 4 files changed, 16 insertions(+) create mode 100755 package/base-files/files/usr/sbin/7621_15d_hwnat_disable.sh create mode 100755 package/base-files/files/usr/sbin/7621_15d_hwnat_enable.sh create mode 100755 package/base-files/files/usr/sbin/hwnat-disable.sh create mode 100755 package/base-files/files/usr/sbin/hwnat-enable.sh (limited to 'package/base-files') diff --git a/package/base-files/files/usr/sbin/7621_15d_hwnat_disable.sh b/package/base-files/files/usr/sbin/7621_15d_hwnat_disable.sh new file mode 100755 index 0000000..3837e88 --- /dev/null +++ b/package/base-files/files/usr/sbin/7621_15d_hwnat_disable.sh @@ -0,0 +1,4 @@ +iwpriv ra0 set hw_nat_register=0 +iwpriv rax0 set hw_nat_register=0 +rmmod hw_nat.ko + diff --git a/package/base-files/files/usr/sbin/7621_15d_hwnat_enable.sh b/package/base-files/files/usr/sbin/7621_15d_hwnat_enable.sh new file mode 100755 index 0000000..c0fd623 --- /dev/null +++ b/package/base-files/files/usr/sbin/7621_15d_hwnat_enable.sh @@ -0,0 +1,4 @@ +insmod /lib/modules/ralink/hw_nat.ko +iwpriv ra0 set hw_nat_register=1 +iwpriv rax0 set hw_nat_register=1 + diff --git a/package/base-files/files/usr/sbin/hwnat-disable.sh b/package/base-files/files/usr/sbin/hwnat-disable.sh new file mode 100755 index 0000000..3837e88 --- /dev/null +++ b/package/base-files/files/usr/sbin/hwnat-disable.sh @@ -0,0 +1,4 @@ +iwpriv ra0 set hw_nat_register=0 +iwpriv rax0 set hw_nat_register=0 +rmmod hw_nat.ko + diff --git a/package/base-files/files/usr/sbin/hwnat-enable.sh b/package/base-files/files/usr/sbin/hwnat-enable.sh new file mode 100755 index 0000000..c0fd623 --- /dev/null +++ b/package/base-files/files/usr/sbin/hwnat-enable.sh @@ -0,0 +1,4 @@ +insmod /lib/modules/ralink/hw_nat.ko +iwpriv ra0 set hw_nat_register=1 +iwpriv rax0 set hw_nat_register=1 + -- cgit v1.1