summaryrefslogtreecommitdiff
path: root/package/base-files/files/etc/rc.local
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/files/etc/rc.local')
-rw-r--r--package/base-files/files/etc/rc.local21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/base-files/files/etc/rc.local b/package/base-files/files/etc/rc.local
index 5639477..e392d53 100644
--- a/package/base-files/files/etc/rc.local
+++ b/package/base-files/files/etc/rc.local
@@ -1,4 +1,25 @@
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
+case `cat /proc/cpuinfo | grep MT76` in
+ *7621*)
+ CONFIG_RALINK_MT7621=y
+ ;;
+ *7623*)
+ CONFIG_ARCH_MT7623=y
+ ;;
+esac
+if [ "$CONFIG_RALINK_MT7621" = "y" ]; then
+echo 2048 > /proc/sys/vm/min_free_kbytes
+#echo 2 > /proc/sys/vm/overcommit_memory
+#echo 50 > /proc/sys/vm/overcommit_ratio
+fi
+block mount
+
+# add nat rule manually
+
+smp.sh wifi
+hwnat-enable.sh
+bridge-add.sh
+
exit 0