summaryrefslogtreecommitdiff
path: root/package/ramips/applications/hwnat/files/hwnat
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-16 20:17:57 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-16 20:17:57 +0200
commit85bdc5b94c8a1730d3077f361297028cfd8b9b78 (patch)
treea6835c355fde8ce9f36c808dbb9b50809d3c77f4 /package/ramips/applications/hwnat/files/hwnat
parent6e0004f572f23810c21d5fb4477d8b9347dffdbb (diff)
downloadmtk-20170518-mtk-20170518.zip
mtk-20170518-mtk-20170518.tar.gz
mtk-20170518-mtk-20170518.tar.bz2
MTK mt76 hwnat implementationHEADmtk-20170518
Diffstat (limited to 'package/ramips/applications/hwnat/files/hwnat')
-rwxr-xr-xpackage/ramips/applications/hwnat/files/hwnat18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/ramips/applications/hwnat/files/hwnat b/package/ramips/applications/hwnat/files/hwnat
new file mode 100755
index 0000000..ce350f3
--- /dev/null
+++ b/package/ramips/applications/hwnat/files/hwnat
@@ -0,0 +1,18 @@
+#!/bin/sh /etc/rc.common
+
+START=91
+STOP=91
+
+USE_PROCD=1
+
+start_service() {
+# insmod /lib/modules/ralink/hw_nat.ko
+ mknod /dev/hwnat0 c 220 0
+}
+
+stop_service() {
+# rmmod hw_nat.ko
+ echo 'do nothing' > /dev/null
+}
+
+