summaryrefslogtreecommitdiff
path: root/package/base-files/files/etc/rc.local
blob: e392d533b9fda9f2156fad52b0c926270ee082e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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