summaryrefslogtreecommitdiff
path: root/package/ramips/applications/hwnat/files/hwnat
diff options
context:
space:
mode:
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
+}
+
+